Skip to content

Commit

Permalink
fix: revert devtools-kit removals by vuejs#664
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 committed Oct 31, 2024
1 parent cbffbe7 commit c3755bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools-kit/src/ctx/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export function createDevToolsCtxHooks() {
const _payload = {
app: plugin.descriptor.app,
inspectorId,
filter: inspector?.treeFilterPlaceholder || '',
filter: inspector?.treeFilter || '',
rootNodes: [],
}

Expand Down
2 changes: 2 additions & 0 deletions packages/devtools-kit/src/ctx/inspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface DevToolsKitInspector {
descriptor: PluginDescriptor
treeFilterPlaceholder: string
stateFilterPlaceholder: string
treeFilter: string
selectedNodeId: string
appRecord: unknown
}
Expand All @@ -34,6 +35,7 @@ export function addInspector(inspector: CustomInspectorOptions, descriptor: Plug
descriptor,
treeFilterPlaceholder: inspector.treeFilterPlaceholder ?? 'Search tree...',
stateFilterPlaceholder: inspector.stateFilterPlaceholder ?? 'Search state...',
treeFilter: '',
selectedNodeId: '',
appRecord: getAppRecord(descriptor.app),
})
Expand Down

0 comments on commit c3755bf

Please sign in to comment.