Skip to content

Commit

Permalink
revert: "fix(gui): fixed an issue that caused number comparisons in d…
Browse files Browse the repository at this point in the history
…evice filters to not work"

This reverts commit 84e2398.
Signed-off-by: Manuel Zedel <manuel.zedel@northern.tech>
  • Loading branch information
mzedel committed Dec 6, 2024
1 parent 89b0c73 commit 787237e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/js/store/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import {

// for some reason these functions can not be stored in the deviceConstants...
const filterProcessors = {
$gt: val => Number(val) || val,
$gte: val => Number(val) || val,
$lt: val => Number(val) || val,
$lte: val => Number(val) || val,
$in: val => ('' + val).split(',').map(i => i.trim()),
$nin: val => ('' + val).split(',').map(i => i.trim()),
$exists: yes,
Expand Down

0 comments on commit 787237e

Please sign in to comment.