Skip to content

Commit 34e3ce3

Browse files
Revert "fix: incorrect data shown if filter match not found"
This reverts commit 1c28ec5.
1 parent 1c28ec5 commit 34e3ce3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/CatalogueContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ const CatalogueContent = () => {
160160
answerkeyCondition
161161
);
162162
});
163+
setFilteredPapers(filtered.length > 0 ? filtered : papersData);
163164
setAppliedFilters(true);
164165
} catch (error) {
165166
setPapers([]);
@@ -404,7 +405,7 @@ const CatalogueContent = () => {
404405
/>
405406
))
406407
) : (
407-
<p className="w-full">No papers available with the applied filter</p>
408+
<p>No papers available with the applied filter</p>
408409
)
409410
) : (
410411
papers.map((paper: IPaper) => (

0 commit comments

Comments
 (0)