Skip to content

Commit

Permalink
more robust filtersApplied function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Feb 8, 2024
1 parent 2b4da78 commit 8f275b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ async function onChangeMode(mode) {
});
}

const filtersApplied = (list) => list.length < LABELS.length -1;
const filtersApplied = (list) => list?.length && list.length < LABELS.length -1;

/**
* onLaunch called when Application is first opened or when model changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chirpity",
"version": "1.0.0",
"version": "1.0.1",
"description": "Chirpity Nocmig",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 8f275b1

Please sign in to comment.