Skip to content

Commit

Permalink
[supernova] ensure value on SearchInput is never set to null (this re…
Browse files Browse the repository at this point in the history
…sults in error)
  • Loading branch information
edda committed Aug 10, 2023
1 parent 7d8c050 commit 9815c47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/supernova/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supernova",
"version": "0.1.0",
"version": "0.9.0",
"author": "Juno team (SAP)",
"license": "MIT",
"source": "src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion apps/supernova/src/components/filters/FilterSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const FilterSelect = () => {
)}
<SearchInput
className="w-96 ml-auto"
value={searchTerm}
value={searchTerm || ""}
onSearch={(value) => setSearchTerm(value)}
onClear={() => setSearchTerm(null)}
onChange={(value) => handleSearchChange(value)}
Expand Down

0 comments on commit 9815c47

Please sign in to comment.