Skip to content

Commit

Permalink
Fix console error on adding node via searchbox (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Jan 22, 2025
1 parent 1c9b300 commit 8f6b594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/searchbox/NodeSearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
<!-- FilterAndValue -->
<template v-slot:chip="{ value }">
<SearchFilterChip
v-if="Array.isArray(value) && value.length === 2"
:key="`${value[0].id}-${value[1]}`"
@remove="onRemoveFilter($event, value)"
@remove="onRemoveFilter($event, value as FilterAndValue)"
:text="value[1]"
:badge="value[0].invokeSequence.toUpperCase()"
:badge-class="value[0].invokeSequence + '-badge'"
Expand Down

0 comments on commit 8f6b594

Please sign in to comment.