@noatgnu/cupcake-vanilla 1.3.8 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4621,12 +4621,16 @@ class ColumnEditModal {
4621
4621
  this.isLoading.set(true);
4622
4622
  const formValue = this.editForm.getRawValue();
4623
4623
  const ontologyTypeIndex = parseInt(formValue.ontologyType);
4624
- const ontologyTypeValue = ontologyTypeIndex > 0 ? this.ontologyTypes[ontologyTypeIndex]?.value : undefined;
4624
+ const selectedOntology = ontologyTypeIndex > 0 ? this.ontologyTypes[ontologyTypeIndex] : null;
4625
+ const ontologyTypeValue = selectedOntology?.value;
4626
+ // Extract custom filters from the selected ontology config
4627
+ const customOntologyFilters = selectedOntology?.customFilters || {};
4625
4628
  const columnData = {
4626
4629
  name: formValue.name,
4627
4630
  type: formValue.type,
4628
4631
  value: formValue.value || '',
4629
4632
  ontologyType: ontologyTypeValue,
4633
+ customOntologyFilters: customOntologyFilters,
4630
4634
  enableTypeahead: formValue.enableTypeahead || false,
4631
4635
  mandatory: formValue.mandatory || false,
4632
4636
  hidden: formValue.hidden || false,