mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 06:44:32 +00:00
Disallow node library bookmark folder name with / (#1311)
This commit is contained in:
@@ -115,6 +115,10 @@ export const useNodeBookmarkStore = defineStore('nodeBookmark', () => {
|
||||
throw new Error('Cannot rename non-folder node')
|
||||
}
|
||||
|
||||
if (newName.includes('/')) {
|
||||
throw new Error('Folder name cannot contain "/"')
|
||||
}
|
||||
|
||||
const newNodePath =
|
||||
folderNode.category.split('/').slice(0, -1).concat(newName).join('/') +
|
||||
'/'
|
||||
|
||||
Reference in New Issue
Block a user