feat(#4): Add comparison for versions, refactor version restoring

This commit is contained in:
2025-11-09 08:17:10 +01:00
parent 81f9f89d94
commit ef440d2970
10 changed files with 473 additions and 45 deletions

View File

@@ -94,6 +94,7 @@ function getDropdownItems(formElementId: string, formElementPosition: number): D
}
function updateFormOptions(formOptions: FormOptionDto[], formElementIndex: number) {
console.log('Updating form options for element index:', formElementIndex, formOptions)
const updatedModelValue = [...props.modelValue]
updatedModelValue[formElementIndex] = { ...updatedModelValue[formElementIndex], options: formOptions }
emit('update:modelValue', updatedModelValue)