Closed Biont closed 2 years ago
Good catch, the prefix isn't hardcoded but it defaults to gjs-
since an empty string is falsy. Should be matter of properly handling the assignment of this.id
.
https://github.com/Ju99ernaut/grapesjs-template-manager/blob/11a7190177ecf3f98ec31e59422c58e01087b374/src/utils/ui.js#L6
I'll work on a fix for this but a PR is also welcome.
Probably there's no need to add || 'gjs-'
, it can just be:
this.id = editor.Storage.getConfig().id;
I wanted to get rid of the
gjs-
-prefix in the payloads, so I set up my storage manager like this:If I save a document like this and then open the template manager modal, I see the following error:
That's because it is still trying to access the
"pages"
property using the"gjs-"
prefix:I would expect this to respect the prefix I configured in the
storeManager
. Did I miss something here?I am using the latest releases of everything: