remove unneeded 0 by making the key unique

This commit is contained in:
HarelM
2024-01-02 11:44:20 +02:00
parent b74e5d4c74
commit 6650262d26
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ describe("layers", () => {
beforeEach(() => { beforeEach(() => {
bgId = createBackground(); bgId = createBackground();
when.click("layer-list-item:background:" + bgId); when.click("layer-list-item:background:" + bgId);
when.click("spec-field:background-color", 0); when.click("spec-field:background-color");
}); });
it("should update style in local storage", () => { it("should update style in local storage", () => {
+1 -1
View File
@@ -399,7 +399,7 @@ export default class FieldFunction extends React.Component<FieldFunctionProps, F
/> />
) )
} }
return <div className={propClass} data-wd-key={"spec-field:"+this.props.fieldName}> return <div className={propClass} data-wd-key={"spec-field-container:"+this.props.fieldName}>
{specField} {specField}
</div> </div>
} }