diff --git a/src/main/frontend/components/editor.cljs b/src/main/frontend/components/editor.cljs index 2a2d5c28f4..eea7f6fab0 100644 --- a/src/main/frontend/components/editor.cljs +++ b/src/main/frontend/components/editor.cljs @@ -372,26 +372,30 @@ (rum/defc property-search [id] (let [input (gdom/getElement id) - [matched-properties set-matched-properties!] (rum/use-state nil)] + [matched-properties set-matched-properties!] (rum/use-state nil) + [q set-q!] (rum/use-state "")] (when input - (let [q (or (:searching-property (editor-handler/get-searching-property input)) - "")] - (hooks/use-effect! - (fn [] - (p/let [matched-properties (editor-handler/