1
0

fix(views): make sure the view is saved properly in localStorage

This commit is contained in:
kolaente
2024-04-13 22:15:41 +02:00
parent 1460d212ee
commit 637c8f6ba5
3 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,7 @@ const SETTINGS_KEY_PROJECT_VIEW = 'projectView'
* Save the current project view to local storage
*/
export function saveProjectView(projectId: IProject['id'], viewId: number) {
console.log({projectId, viewId})
if (!projectId || !viewId) {
return
}