Skip to content

Commit

Permalink
🐛the search results resets to all specs after loading a spec
Browse files Browse the repository at this point in the history
  • Loading branch information
soaibsafi committed Jan 5, 2024
1 parent 3e6f00f commit 48bd487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/Utils/DrawerComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ const DrawerComponent = ({ isOpen, onClose, onItemSelect }) => {
.then((res) => {
const itemContent = res;
onItemSelect(itemContent.check, itemContent.permalink, itemContent.code);
setDebouncedSearchQuery('');
onClose();
})
.catch((err) => {
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/Utils/Nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ export default function Navbar({ setEditorValue, setLanguage }) {

/**
* Handle the drawer item click. Update the state in the Playground component to set the code in the Editor
* @param {*} check
* @param {*} code
* @param {*} check - The short name of the tool.
* @param {*} permalink - The for the specification.
* @param {*} code - Specification code.
*/
const handleDrawerItemClick = (check, permalink, code) => {
setEditorValue(code);
Expand Down

0 comments on commit 48bd487

Please sign in to comment.