Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working - Set Layer Comp issue #10

Open
silviu-bucsa opened this issue May 15, 2021 · 0 comments
Open

Plugin not working - Set Layer Comp issue #10

silviu-bucsa opened this issue May 15, 2021 · 0 comments

Comments

@silviu-bucsa
Copy link

silviu-bucsa commented May 15, 2021

Hello,

Just stumbled over this plugin and gave it a try, as it reminds me of Layer Comps in Photoshop - which is handy,
but unfortunately it doesn't work fully:

I can create and Save Layer Comps from the Plugin menu -> Save Layer Comp
But when I navigate to Set Layer Comp - I get this error in Sketch DevTools Console:

MOJavaScriptException: TypeError: t.map is not a function. (In 't.map(e=>o.addButtonWithTitle(e))', 't.map' is undefined)
l __set-comp.js:1:15115
e __set-comp.js:1:16437
__set-comp.js:1:16617
__skpm_run __set-comp.js:1:17144
__skpm_run [native code]

and the plugin code doesn't execute further.
I don't know enough to debug more and suggest a fix ...

Delete Layer Comps - shows the list of Saved Layer Comps.

Sketch Version 72.1 (124357)
macOS 11.3.1

Another thing, "Set Layer Comp" is mildly confusing (at least for me) I think would be better renamed to "Change to Layer Comp" or "View Layer Comp" - as I presume you would see a list of saved layer comps and choose which one to apply to the current artboard.

@silviu-bucsa silviu-bucsa changed the title Plugin not working fully Plugin not working - Set Layer Comp issue May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant