Skip to content

Commit

Permalink
Fixed missing input field for filters
Browse files Browse the repository at this point in the history
closes #175
  • Loading branch information
crazyscientist committed Dec 8, 2023
1 parent e744a23 commit 8e572f2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions frontend/src/components/SearchPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ export default {
t[a.name] = a.type;
}
return t;
},
typeInputMap() {
const dict = {...TYPE_INPUT_MAP};
// Override the default text area with a one-line input field
dict.STR = "TextInput";
return dict
}
},
methods: {
Expand All @@ -159,7 +165,7 @@ export default {
}
try {
const fieldType = this.fieldTypes[row.field].toUpperCase();
return TYPE_INPUT_MAP[fieldType];
return this.typeInputMap[fieldType];
} catch (e) {
console.error(e);
return null;
Expand Down Expand Up @@ -189,8 +195,7 @@ export default {
filters: [],
searchQuery: "",
allValues: false,
listMode: 'active',
TYPE_INPUT_MAP,
listMode: 'active'
};
},
};
Expand Down

0 comments on commit 8e572f2

Please sign in to comment.