Skip to content

Commit 3fb2868

Browse files
authored
Merge pull request #93 from devforth/add-foreign-resource-unset
fix: add unset option to foreign resource select
2 parents 2148732 + c0a261c commit 3fb2868

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adminforth/spa/src/components/ResourceForm.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ const columnOptions = computedAsync(async () => {
252252
offset: 0,
253253
},
254254
});
255-
return { [column.name]: list.items };
255+
console.log(`columnOptions for ${column.name}: ${JSON.stringify(list.items, null, 2)}`);
256+
return { [column.name]: [...list.items, { value: null, label: t('Unset')}] };
256257
}
257258
})
258259
)).reduce((acc, val) => Object.assign(acc, val), {})

0 commit comments

Comments
 (0)