diff --git a/frontend/src/components/Utils/DrawerComponent.jsx b/frontend/src/components/Utils/DrawerComponent.jsx index b27ab04..597a47e 100644 --- a/frontend/src/components/Utils/DrawerComponent.jsx +++ b/frontend/src/components/Utils/DrawerComponent.jsx @@ -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) => { diff --git a/frontend/src/components/Utils/Nav.jsx b/frontend/src/components/Utils/Nav.jsx index 396cc73..a78722a 100644 --- a/frontend/src/components/Utils/Nav.jsx +++ b/frontend/src/components/Utils/Nav.jsx @@ -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);