diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue
index bf39c07229..422b00e9c2 100644
--- a/packages/frontend/src/ui/deck.vue
+++ b/packages/frontend/src/ui/deck.vue
@@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
[item.id, item]));
-function walk(item: GeneratedSearchIndexItem) {
+// link inlining here
+for (const item of generated) {
if (item.inlining) {
for (const id of item.inlining) {
const inline = rootMods.get(id);
if (inline) {
- (item.children ??= []).push(inline);
- rootMods.delete(id);
+ inline.parentId = item.id;
} else {
console.log('[Settings Search Index] Failed to inline', id);
}
}
}
-
- for (const child of item.children ?? []) {
- walk(child);
- }
-}
-
-for (const item of generated) {
- walk(item);
}
export const searchIndexes: SearchIndexItem[] = generated;
diff --git a/packages/frontend/src/utility/virtual.d.ts b/packages/frontend/src/utility/virtual.d.ts
index 59470a1f5e..63dc4372b7 100644
--- a/packages/frontend/src/utility/virtual.d.ts
+++ b/packages/frontend/src/utility/virtual.d.ts
@@ -6,12 +6,12 @@
declare module 'search-index:settings' {
export type GeneratedSearchIndexItem = {
id: string;
+ parentId?: string;
path?: string;
label: string;
keywords: string[];
icon?: string;
inlining?: string[];
- children?: GeneratedSearchIndexItem[];
};
export const searchIndexes: GeneratedSearchIndexItem[];
diff --git a/packages/misskey-js/package.json b/packages/misskey-js/package.json
index 7e92981230..7ab4cb8914 100644
--- a/packages/misskey-js/package.json
+++ b/packages/misskey-js/package.json
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "misskey-js",
- "version": "2025.4.0-rc.1",
+ "version": "2025.4.0-rc.2",
"description": "Misskey SDK for JavaScript",
"license": "MIT",
"main": "./built/index.js",