Commit 34f65dd9 authored by jakeburden's avatar jakeburden

Simplify check for active item

parent 8ea42202
...@@ -37,8 +37,7 @@ export default { ...@@ -37,8 +37,7 @@ export default {
this.$emit('sort:changed'); this.$emit('sort:changed');
}, },
isActiveSortItem(item) { isActiveSortItem(item) {
const [itemOrderBy] = item.split(' '); return this.orderBy === item;
return this.orderBy === itemOrderBy;
}, },
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment