Skip to content

Commit 0badccb

Browse files
committed
fix: ajouter la gestion du type de champ par défaut lors du montage du composant
1 parent 49d8c1b commit 0badccb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/web/src/components/core/edit-filters.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ export default defineNuxtComponent({
467467
mounted() {
468468
this.filterOptions = this.columns.map(this.mapAssign)
469469
this.fieldType = this.columnsType.find((col) => col.name === this.filter.key)?.type
470+
471+
if (!this.fieldType && !this.columnExists(this.filter.key || '') && this.filter.key) {
472+
this.fieldType = this.comparator?.type ? this.comparator.type[0] : 'text'
473+
}
470474
},
471475
})
472476
</script>

0 commit comments

Comments
 (0)