Trying to fix linting errors

This commit is contained in:
ajnart
2022-12-22 11:45:48 +09:00
parent e982515bb5
commit 93fc011879
10 changed files with 7 additions and 327 deletions

View File

@@ -33,8 +33,9 @@ export const WidgetElementType = ({ id, image, disabled, widget }: WidgetElement
{
id: widget.id,
properties: Object.entries(widget.options).reduce((prev, [k, v]) => {
prev[k] = v.defaultValue;
return prev;
const newPrev = prev;
newPrev[k] = v.defaultValue;
return newPrev;
}, {} as IWidget<string, any>['properties']),
area: {
type: 'wrapper',