diff --git a/src/app/components/ClassifiedActions.svelte b/src/app/components/ClassifiedActions.svelte index d01a0b8a..f034d945 100644 --- a/src/app/components/ClassifiedActions.svelte +++ b/src/app/components/ClassifiedActions.svelte @@ -4,7 +4,7 @@ import {getTagValue, getTagValues, getAddress} from "@welshman/util" import {pubkey} from "@welshman/app" import Pen2 from "@assets/icons/pen-2.svg?dataurl" - import {normalizeTopic} from '@lib/util' + import {normalizeTopic} from "@lib/util" import Link from "@lib/components/Link.svelte" import Icon from "@lib/components/Icon.svelte" import Button from "@lib/components/Button.svelte" diff --git a/src/app/components/TopicMultiSelect.svelte b/src/app/components/TopicMultiSelect.svelte index fa63339d..1f56ebd3 100644 --- a/src/app/components/TopicMultiSelect.svelte +++ b/src/app/components/TopicMultiSelect.svelte @@ -2,7 +2,7 @@ import {writable} from "svelte/store" import type {Writable} from "svelte/store" import type {Instance} from "tippy.js" - import {remove, without, uniq} from "@welshman/lib" + import {remove, reject, spec, uniq} from "@welshman/lib" import {createSearch, topics} from "@welshman/app" import {normalizeTopic} from "@lib/util" import Suggestions from "@lib/components/Suggestions.svelte" @@ -21,7 +21,7 @@ let {value = $bindable(), term = writable("")}: Props = $props() const topicSearch = $derived.by(() => - createSearch(without(value, $topics), { + createSearch(reject(spec({name: value}), $topics), { getValue: topic => topic.name, fuseOptions: { keys: ["name"], @@ -76,9 +76,9 @@