Commit 34f65dd9 authored by jakeburden's avatar jakeburden

Simplify check for active item

parent 8ea42202
......@@ -37,8 +37,7 @@ export default {
this.$emit('sort:changed');
},
isActiveSortItem(item) {
const [itemOrderBy] = item.split(' ');
return this.orderBy === itemOrderBy;
return this.orderBy === item;
},
},
};
......
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