Skip to content

Commit 9d369b6

Browse files
committed
fixing for lint
1 parent dbfb8d8 commit 9d369b6

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

dash/dash-renderer/src/actions/callbacks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,14 @@ function sideUpdate(outputs: SideUpdateOutput, cb: ICallbackPayload) {
421421
const state = getState();
422422

423423
const componentPath = getPath(state.paths, id);
424-
let oldComponent = null;
424+
let oldComponent = {};
425425
if (componentPath) {
426-
oldComponent = getComponentLayout(componentPath, state)
426+
oldComponent = getComponentLayout(componentPath, state);
427427
}
428428

429429
const oldProps = oldComponent?.props || {};
430430

431-
const patchedProps = parsePatchProps(idProps, oldProps)
431+
const patchedProps = parsePatchProps(idProps, oldProps);
432432

433433
dispatch(updateComponent(id, patchedProps, cb));
434434

dash/dash-renderer/src/actions/patch.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class PatchBuilder {
5151
this.operations.push({
5252
operation: 'Assign',
5353
location,
54-
params: { value }
54+
params: {value}
5555
});
5656
return this;
5757
}
@@ -60,7 +60,7 @@ export class PatchBuilder {
6060
this.operations.push({
6161
operation: 'Merge',
6262
location,
63-
params: { value }
63+
params: {value}
6464
});
6565
return this;
6666
}
@@ -69,7 +69,7 @@ export class PatchBuilder {
6969
this.operations.push({
7070
operation: 'Extend',
7171
location,
72-
params: { value }
72+
params: {value}
7373
});
7474
return this;
7575
}
@@ -87,7 +87,7 @@ export class PatchBuilder {
8787
this.operations.push({
8888
operation: 'Insert',
8989
location,
90-
params: { index, value }
90+
params: {index, value}
9191
});
9292
return this;
9393
}
@@ -96,7 +96,7 @@ export class PatchBuilder {
9696
this.operations.push({
9797
operation: 'Append',
9898
location,
99-
params: { value }
99+
params: {value}
100100
});
101101
return this;
102102
}
@@ -105,7 +105,7 @@ export class PatchBuilder {
105105
this.operations.push({
106106
operation: 'Prepend',
107107
location,
108-
params: { value }
108+
params: {value}
109109
});
110110
return this;
111111
}
@@ -114,7 +114,7 @@ export class PatchBuilder {
114114
this.operations.push({
115115
operation: 'Add',
116116
location,
117-
params: { value }
117+
params: {value}
118118
});
119119
return this;
120120
}
@@ -123,7 +123,7 @@ export class PatchBuilder {
123123
this.operations.push({
124124
operation: 'Sub',
125125
location,
126-
params: { value }
126+
params: {value}
127127
});
128128
return this;
129129
}
@@ -132,7 +132,7 @@ export class PatchBuilder {
132132
this.operations.push({
133133
operation: 'Mul',
134134
location,
135-
params: { value }
135+
params: {value}
136136
});
137137
return this;
138138
}
@@ -141,7 +141,7 @@ export class PatchBuilder {
141141
this.operations.push({
142142
operation: 'Div',
143143
location,
144-
params: { value }
144+
params: {value}
145145
});
146146
return this;
147147
}
@@ -168,7 +168,7 @@ export class PatchBuilder {
168168
this.operations.push({
169169
operation: 'Remove',
170170
location,
171-
params: { value }
171+
params: {value}
172172
});
173173
return this;
174174
}
@@ -309,7 +309,7 @@ export function parsePatchProps(props: any, previousProps: any): {} {
309309
return props;
310310
}
311311

312-
let patchedProps: any = {};
312+
const patchedProps: any = {};
313313

314314
for (const key of Object.keys(props)) {
315315
const val = props[key];

dash/dash-renderer/src/utils/clientsideFunctions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ function set_props(
4040
dispatch(notifyObservers({id: idOrPath, props}));
4141

4242
if (!oldComponent) {
43-
console.error(
44-
`Could not find component with id or path: ${idOrPath}`
45-
);
43+
// console.error(
44+
// `Could not find component with id or path: ${idOrPath}`
45+
// );
4646
return;
4747
}
4848

0 commit comments

Comments
 (0)