From 6650262d2671629b703f0adbb8b1d67da0b6fb88 Mon Sep 17 00:00:00 2001 From: HarelM Date: Tue, 2 Jan 2024 11:44:20 +0200 Subject: [PATCH] remove unneeded 0 by making the key unique --- cypress/e2e/layers.cy.ts | 2 +- src/components/FieldFunction.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/layers.cy.ts b/cypress/e2e/layers.cy.ts index 71b37e90..d59f9eed 100644 --- a/cypress/e2e/layers.cy.ts +++ b/cypress/e2e/layers.cy.ts @@ -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", () => { diff --git a/src/components/FieldFunction.tsx b/src/components/FieldFunction.tsx index 4ef904eb..1cf17036 100644 --- a/src/components/FieldFunction.tsx +++ b/src/components/FieldFunction.tsx @@ -399,7 +399,7 @@ export default class FieldFunction extends React.Component ) } - return
+ return
{specField}
}