mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
fallback for unexpected null input type
This commit is contained in:
parent
0db9e5b937
commit
28ff97343c
1 changed files with 5 additions and 1 deletions
|
@ -95,7 +95,11 @@ export default defineNuxtComponent({
|
|||
|
||||
const itemVal = computed({
|
||||
get: () => {
|
||||
return Object.keys(props.modelValue).length !== 0 ? props.modelValue : null;
|
||||
try {
|
||||
return Object.keys(props.modelValue).length !== 0 ? props.modelValue : null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
set: (val) => {
|
||||
itemIdVal.value = val?.id || undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue