only show categories with specified type in category filter dialog / page

This commit is contained in:
MaysWind
2024-07-07 11:47:48 +08:00
parent e5a04596e1
commit 7b70b2db29
6 changed files with 52 additions and 7 deletions
+10
View File
@@ -373,6 +373,16 @@ export function objectToArray(object) {
return ret;
}
export function arrayItemToObjectField(array, value) {
const ret = {};
for (let i = 0; i < array.length; i++) {
ret[array[i]] = value;
}
return ret;
}
export function categorizedArrayToPlainArray(object) {
const ret = [];