From b18d5426009f4372c2033789ed5b4afe572f5d0c Mon Sep 17 00:00:00 2001 From: Jan Six Date: Fri, 26 May 2023 09:10:35 +0200 Subject: [PATCH] Fix/update nodes on boot (#1922) fixes a call which was updating nodes on boot or whenever you'd change token sets (collapse/expand, pull from git) --- package.json | 2 +- script/release.sh | 2 +- src/app/store/models/tokenState.tsx | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e02bc0aa3..d801246ad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tokens-studio-for-figma", "version": "1.0.0", - "plugin_version": "1.36.0", + "plugin_version": "1.36.1", "description": "Tokens Studio for Figma", "license": "MIT", "scripts": { diff --git a/script/release.sh b/script/release.sh index 8601115d5..de959829c 100755 --- a/script/release.sh +++ b/script/release.sh @@ -1,4 +1,4 @@ -VERSION=figma-tokens@1.36 +VERSION=figma-tokens@1.36.1 sentry-cli releases -p figma-tokens files "$VERSION" upload-sourcemaps --ext ts --ext tsx --ext map --ext js --ignore-file .sentryignore . sentry-cli releases set-commits "$VERSION" --auto sentry-cli releases finalize "$VERSION" \ No newline at end of file diff --git a/src/app/store/models/tokenState.tsx b/src/app/store/models/tokenState.tsx index 74988c369..cf15e12d6 100644 --- a/src/app/store/models/tokenState.tsx +++ b/src/app/store/models/tokenState.tsx @@ -547,9 +547,6 @@ export const tokenState = createModel()({ updateCheckForChanges() { dispatch.tokenState.updateDocument({ shouldUpdateNodes: false, updateRemote: false }); }, - setCollapsedTokenSets() { - dispatch.tokenState.updateDocument({ updateRemote: false }); - }, updateDocument(options?: UpdateDocumentPayload, rootState?) { const defaults = { shouldUpdateNodes: true, updateRemote: true };