refactor: Add lint rule for unsafe property access with lodash get/set (no-changelog) (#8587)
This commit is contained in:
@@ -521,7 +521,7 @@ export class DateTimeV1 implements INodeType {
|
||||
newItem.binary = item.binary;
|
||||
}
|
||||
|
||||
set(newItem, `json.${dataPropertyName}`, newDate);
|
||||
set(newItem, ['json', dataPropertyName], newDate);
|
||||
|
||||
returnData.push(newItem);
|
||||
}
|
||||
@@ -565,7 +565,7 @@ export class DateTimeV1 implements INodeType {
|
||||
newItem.binary = item.binary;
|
||||
}
|
||||
|
||||
set(newItem, `json.${dataPropertyName}`, newDate.toISOString());
|
||||
set(newItem, ['json', dataPropertyName], newDate.toISOString());
|
||||
|
||||
returnData.push(newItem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user