Skip to content

Commit

Permalink
fix: don't log errors for expected special case
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Mar 8, 2022
1 parent 9659f7c commit 427d694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/modules/categories.js
Expand Up @@ -38,7 +38,8 @@ const getters = {
get_category: state => category_arr => {
const match = state.classes.find(c => _.isEqual(c.name, category_arr));
if (!match) {
console.error("Couldn't find category: ", category_arr);
if (!_.equals(category_arr, ['Uncategorized']))
console.error("Couldn't find category: ", category_arr);
// fallback
return { name: ['Uncategorized'] };
}
Expand Down

1 comment on commit 427d694

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.11.0 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.11.0 (click to expand)

CML watermark

Please sign in to comment.