Skip to content

Commit d401d1d

Browse files
committed
fix: sort dropdown of parent category options
1 parent 523bb28 commit d401d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CategoryEditModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
const entries = categories.map(c => {
7171
return { text: c.join('->'), value: c };
7272
});
73-
return [{ value: [], text: 'None' }].concat(entries);
73+
return [{ value: [], text: 'None' }].concat(_.sortBy(entries, 'text'));
7474
},
7575
allRuleTypes: function () {
7676
return [

0 commit comments

Comments
 (0)