mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix deselecting options for kanban layout (#18600)
* Fix deselecting options for kanban layout * Add changeset * Removing unnecessary optional chaining operator Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> --------- Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
5
.changeset/sixty-snakes-happen.md
Normal file
5
.changeset/sixty-snakes-happen.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/app': patch
|
||||
---
|
||||
|
||||
Fix deselecting options for kanban layout
|
||||
@@ -141,7 +141,7 @@ export default defineLayout<LayoutOptions, LayoutQuery>({
|
||||
function createViewOption<T>(key: keyof LayoutOptions, defaultValue: any) {
|
||||
return computed<T>({
|
||||
get() {
|
||||
return layoutOptions.value?.[key] !== undefined ? layoutOptions.value?.[key] : defaultValue;
|
||||
return layoutOptions.value?.[key] !== undefined ? layoutOptions.value[key] : defaultValue;
|
||||
},
|
||||
set(newValue: T) {
|
||||
layoutOptions.value = {
|
||||
|
||||
@@ -353,7 +353,7 @@ export default defineLayout<LayoutOptions, LayoutQuery>({
|
||||
function createViewOption<T>(key: keyof LayoutOptions, defaultValue: any) {
|
||||
return computed<T>({
|
||||
get() {
|
||||
return layoutOptions.value?.[key] ?? defaultValue;
|
||||
return layoutOptions.value?.[key] !== undefined ? layoutOptions.value[key] : defaultValue;
|
||||
},
|
||||
set(newValue: T) {
|
||||
layoutOptions.value = {
|
||||
|
||||
Reference in New Issue
Block a user