Skip to content

Commit

Permalink
remove unneeded 0 by making the key unique
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jan 2, 2024
1 parent b74e5d4 commit 6650262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/layers.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ describe("layers", () => {
beforeEach(() => {
bgId = createBackground();
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", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/FieldFunction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
</div>
}
Expand Down

0 comments on commit 6650262

Please sign in to comment.