(path)
| 467 | return newPath; |
| 468 | }, |
| 469 | removeFolder(path) { |
| 470 | const current = useSheetContextStore.getState().viewStates[view].folders; |
| 471 | const next = current.filter( |
| 472 | (value) => |
| 473 | !( |
| 474 | value === path || |
| 475 | isSubFolder({ parent: path, path: value, dig: true }) |
| 476 | ) |
| 477 | ); |
| 478 | useSheetContextStore.getState().setViewFolders(view, next); |
| 479 | persistViewFolders(view, next); |
| 480 | }, |
| 481 | moveFolder(from, to) { |
| 482 | const fromPath = ensureFolderPath(view, from); |
| 483 | const toPath = ensureFolderPath(view, to); |
nothing calls this directly
no test coverage detected