Skip to content

Commit 25617d5

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 5ddd062 commit 25617d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)