chore: don't set the current project to null if it's undefined already
This commit is contained in:
@ -81,7 +81,7 @@ export const useBaseStore = defineStore('base', () => {
|
||||
async function handleSetCurrentProject(
|
||||
{project, forceUpdate = false}: {project: IProject | null, forceUpdate?: boolean},
|
||||
) {
|
||||
if (project === null) {
|
||||
if (project === null || typeof project === 'undefined') {
|
||||
setCurrentProject({})
|
||||
setBackground('')
|
||||
setBlurHash('')
|
||||
|
Reference in New Issue
Block a user