1
0

fix(settings): allow removing the default project via settings

This commit is contained in:
kolaente
2023-10-20 16:01:22 +02:00
parent 8992caadf9
commit aeed4b3a3b
2 changed files with 47 additions and 22 deletions

View File

@ -70,11 +70,11 @@ function findProjects(query: string) {
foundProjects.value = projectStore.searchProject(query)
}
function select(l: IProject | null) {
if (l === null) {
return
function select(p: IProject | null) {
if (p === null) {
Object.assign(project, {id: 0})
}
Object.assign(project, l)
Object.assign(project, p)
emit('update:modelValue', project)
}
</script>