Skip to content

Commit

Permalink
Fix search field assignment and add loading dependency in Answers com…
Browse files Browse the repository at this point in the history
…ponent
  • Loading branch information
JohanGrims committed Dec 11, 2024
1 parent 981fba1 commit a6c278d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/admin/vote/Answers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@ export default function Answers() {
});
// write search query to search field
const searchField = document.querySelector("mdui-text-field");
searchField.value = search;

if (searchField) {
searchField.value = search;
}
}
}, [search, mode, answers]);
}, [search, mode, answers, loading]);

if (loading) {
return <mdui-linear-progress />;
Expand Down

0 comments on commit a6c278d

Please sign in to comment.