diff options
author | Sunil Shetye | 2025-03-11 17:02:40 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-03-11 17:02:40 +0530 |
commit | 70e28ed8402e16f4d3caeda5449f5001834a1985 (patch) | |
tree | 330255b512bd9a86bbd78265e36493309ecdad1d | |
parent | 7b31b67650e34467ff68a8682f1a1012d9c6dbd0 (diff) | |
download | Common-Interface-Project-70e28ed8402e16f4d3caeda5449f5001834a1985.tar.gz Common-Interface-Project-70e28ed8402e16f4d3caeda5449f5001834a1985.tar.bz2 Common-Interface-Project-70e28ed8402e16f4d3caeda5449f5001834a1985.zip |
add cleanup function
-rw-r--r-- | blocks/eda-frontend/src/pages/Gallery.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blocks/eda-frontend/src/pages/Gallery.js b/blocks/eda-frontend/src/pages/Gallery.js index d77e699a..acf5ee50 100644 --- a/blocks/eda-frontend/src/pages/Gallery.js +++ b/blocks/eda-frontend/src/pages/Gallery.js @@ -122,6 +122,7 @@ const BookDropdown = ({ onBookChange }) => { useEffect(() => { fetchBooks() + return () => { setBooks([]) } }, [fetchBooks]) // Handle dropdown selection change |