Skip to content

Commit

Permalink
Fix/update nodes on boot (#1922)
Browse files Browse the repository at this point in the history
fixes a call which was updating nodes on boot or whenever you'd change
token sets (collapse/expand, pull from git)
  • Loading branch information
six7 authored May 26, 2023
1 parent e788592 commit b18d542
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion script/release.sh
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 0 additions & 3 deletions src/app/store/models/tokenState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,6 @@ export const tokenState = createModel<RootModel>()({
updateCheckForChanges() {
dispatch.tokenState.updateDocument({ shouldUpdateNodes: false, updateRemote: false });
},
setCollapsedTokenSets() {
dispatch.tokenState.updateDocument({ updateRemote: false });
},

updateDocument(options?: UpdateDocumentPayload, rootState?) {
const defaults = { shouldUpdateNodes: true, updateRemote: true };
Expand Down

0 comments on commit b18d542

Please sign in to comment.