Skip to content

Commit d8b88a3

Browse files
authored
fix: search filter for graph module (#31)
1 parent 2a0b6b0 commit d8b88a3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/devtools/src/app/pages/session/[session]/graph

packages/devtools/src/app/pages/session/[session]/graph/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ const fuse = computedWithControl(
125125
() => new Fuse(filtered.value, {
126126
includeScore: true,
127127
keys: ['id'],
128+
ignoreLocation: true,
129+
threshold: 0.4,
128130
}),
129131
)
130132
@@ -200,7 +202,7 @@ function toggleDisplay(type: ClientSettings['flowModuleGraphView']) {
200202
:modules="searched"
201203
/>
202204
<div text-center text-xs op50 m4>
203-
{{ filtered.length }} of {{ session.modulesList.length }}
205+
{{ searched.length }} of {{ session.modulesList.length }}
204206
</div>
205207
</div>
206208
</template>

0 commit comments

Comments
 (0)