Skip to content

Commit

Permalink
Merge pull request #67 from benderl/dev
Browse files Browse the repository at this point in the history
change counter component filter to "includes"
  • Loading branch information
benderl authored Jan 12, 2022
2 parents 4113422 + e8b4bdd commit 4fe426e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/views/LoadManagementConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ export default {
);
return Object.keys(installedComponentsConfigs)
.filter((key) => {
return (
installedComponentsConfigs[key].type === "counter"
return installedComponentsConfigs[key].type.includes(
"counter"
);
})
.reduce((obj, key) => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ export default {
filterComponentsByType(components, type) {
return Object.keys(components)
.filter((key) => {
return components[key].type === type;
return components[key].type.includes(type);
})
.reduce((obj, key) => {
return {
Expand Down

0 comments on commit 4fe426e

Please sign in to comment.