(path)
| 457 | return ensureFolderPath(view, path); |
| 458 | }, |
| 459 | addFolder(path) { |
| 460 | const newPath = ensureFolderPath(view, path); |
| 461 | const current = useSheetContextStore.getState().viewStates[view].folders; |
| 462 | const set = new Set(current); |
| 463 | set.add(newPath); |
| 464 | const next = sortBy([...set]); |
| 465 | useSheetContextStore.getState().setViewFolders(view, next); |
| 466 | persistViewFolders(view, next); |
| 467 | return newPath; |
| 468 | }, |
| 469 | removeFolder(path) { |
| 470 | const current = useSheetContextStore.getState().viewStates[view].folders; |
| 471 | const next = current.filter( |
nothing calls this directly
no test coverage detected