We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed1962 commit 24b39beCopy full SHA for 24b39be
adminforth/spa/src/components/ColumnValueInput.vue
@@ -224,7 +224,9 @@ const input = ref<HTMLInputElement | null>(null);
224
const formatSelectOptions = (options: any, column: any) => {
225
const optionsToReturn = options;
226
if (!column.required[props.mode] && !column.isArray?.enabled) {
227
- optionsToReturn.push({ label: t('Unset'), value: null });
+ if (!optionsToReturn.some((option: any) => option.value === null)) {
228
+ optionsToReturn.push({ label: t('Unset'), value: null });
229
+ }
230
}
231
return optionsToReturn;
232
};
0 commit comments