Skip to content

Commit 24365ab

Browse files
Merge pull request #129 from Soumya8898/soumya8898/fix-calibration-search-filter
fix: search filter for mixed alphanumeric names
2 parents 8c56909 + 28ffa51 commit 24365ab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/general/CalibTable.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ export default {
4848
return this.$store.state.calibration.calibrations
4949
},
5050
filteredCalibrations() {
51+
const searchTerm = this.search.toLowerCase();
52+
if (!searchTerm) return this.calibrations;
5153
return this.calibrations.filter(calibration =>
5254
Object.values(calibration).some(value =>
53-
value.toLowerCase().includes(this.search.toLowerCase())
55+
String(value).toLowerCase().includes(searchTerm)
5456
)
5557
);
5658
},

0 commit comments

Comments
 (0)