Skip to content

Commit 1b650d3

Browse files
committed
fix(plugin-inspect): fix missing dependency definition and runtime TypeError
Fixes the pnpm out-of-date lockfile error in CI by aligning the `storybook` dependency in package.json to `catalog:storybook`, and fixes the `.isStatic is not a function` Vue warning/crash by treating `isStatic` as a boolean instead of a function inside the FunctionsTreeNode template.
1 parent 6329d58 commit 1b650d3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/inspect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"devframe": "workspace:*",
7070
"get-port-please": "catalog:deps",
7171
"h3": "catalog:deps",
72-
"storybook": "catalog:",
72+
"storybook": "catalog:storybook",
7373
"tsdown": "catalog:build",
7474
"unocss": "catalog:",
7575
"vite": "catalog:build",

plugins/inspect/src/spa/components/FunctionsTreeNode.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ export default {
9797
</div>
9898
<textarea :value="argsInput[node.fn.name]" class="args" spellcheck="false" placeholder="[]" @input="emit('updateArgs', node.fn.name, ($event.target as HTMLTextAreaElement).value)" />
9999
<div style="margin-top: 8px; display: flex; gap: 8px; align-items: center;">
100-
<button class="btn" :disabled="pending[node.fn.name] || isStatic()" @click.stop="emit('invoke', node.fn!)">
100+
<button class="btn" :disabled="pending[node.fn.name] || isStatic" @click.stop="emit('invoke', node.fn!)">
101101
{{ pending[node.fn.name] ? 'Invoking…' : 'Invoke' }}
102102
</button>
103-
<span v-if="isStatic()" class="note">read-only static backend — invocation disabled</span>
103+
<span v-if="isStatic" class="note">read-only static backend — invocation disabled</span>
104104
</div>
105105
<div v-if="results[node.fn.name]" class="result">
106106
<div class="result-head">

0 commit comments

Comments
 (0)