Loading client/src/components/Form/Elements/FormData/FormData.vue +7 −1 Original line number Diff line number Diff line Loading @@ -200,8 +200,14 @@ const formattedOptions = computed(() => { // Populate keep-options from cache Object.entries(keepOptions).forEach(([key, option]) => { if (option.value && getSourceType(option.value) === currentSource.value) { // check if option (with same id) is already in result, if yes replace it with keepOption const existingOptionIndex = result.findIndex((v) => v.value?.id === option.value?.id); if (existingOptionIndex >= 0) { result[existingOptionIndex] = option; } else { result.unshift(option); } } }); // Sort entries by hid result.sort((a, b) => { Loading Loading
client/src/components/Form/Elements/FormData/FormData.vue +7 −1 Original line number Diff line number Diff line Loading @@ -200,8 +200,14 @@ const formattedOptions = computed(() => { // Populate keep-options from cache Object.entries(keepOptions).forEach(([key, option]) => { if (option.value && getSourceType(option.value) === currentSource.value) { // check if option (with same id) is already in result, if yes replace it with keepOption const existingOptionIndex = result.findIndex((v) => v.value?.id === option.value?.id); if (existingOptionIndex >= 0) { result[existingOptionIndex] = option; } else { result.unshift(option); } } }); // Sort entries by hid result.sort((a, b) => { Loading