Skip to content

Commit 63d0101

Browse files
authored
Add optional chain operator to this.defaultSetCellValue method (#29106)
1 parent 9f388d6 commit 63d0101

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apps/demos/Demos/DataGrid/CascadingLookups/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class AppComponent {
5151

5252
setStateValue(this: DxDataGridTypes.Column, newData: Employee, value: number, currentRowData: Employee) {
5353
newData.CityID = null;
54-
this.defaultSetCellValue(newData, value, currentRowData);
54+
this.defaultSetCellValue?.(newData, value, currentRowData);
5555
}
5656
}
5757

apps/demos/Demos/DataGrid/CascadingLookups/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const getFilteredCities = (options: { data?: Employee; }) => ({
2121

2222
function setStateValue(rowData: Employee, value) {
2323
rowData.CityID = null;
24-
this.defaultSetCellValue(rowData, value);
24+
this.defaultSetCellValue?.(rowData, value);
2525
}
2626

2727
const App = () => (

apps/demos/Demos/DataGrid/CascadingLookups/ReactJs/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const getFilteredCities = (options) => ({
1414
});
1515
function setStateValue(rowData, value) {
1616
rowData.CityID = null;
17-
this.defaultSetCellValue(rowData, value);
17+
this.defaultSetCellValue?.(rowData, value);
1818
}
1919
const App = () => (
2020
<div id="data-grid-demo">

apps/demos/Demos/DataGrid/CascadingLookups/Vue/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function setStateValue(
5757
) {
5858
newData.CityID = null;
5959
60-
this.defaultSetCellValue!(newData, value, currentRowData);
60+
this.defaultSetCellValue?.(newData, value, currentRowData);
6161
}
6262
6363
const getFilteredCities = (options: { data: City }) => ({

0 commit comments

Comments
 (0)