Skip to content

Commit 7a400af

Browse files
authored
category drag addon -- for optimization, dont create a comment if nothing changes
1 parent 99c0414 commit 7a400af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addons/addons/toolbox-category-drag/userscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default async function ({ addon }) {
6262

6363
const ogSaveJSON = vm.toJSON;
6464
vm.toJSON = function (...args) {
65-
saveOrdering();
65+
if (categoryOrdering !== undefined) saveOrdering();
6666
return ogSaveJSON.call(this, ...args);
6767
}
6868

0 commit comments

Comments
 (0)