We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7450233 commit 975782aCopy full SHA for 975782a
1 file changed
src/components/routes/dashboard/Dashboard.tsx
@@ -64,6 +64,7 @@ const Dashboard = () => {
64
setSortBy(column);
65
setSortOrder("asc");
66
}
67
+ setCurrentPage(1);
68
};
69
70
const {
@@ -111,7 +112,12 @@ const Dashboard = () => {
111
112
placeholder={t("common.placeholder.search")}
113
className="rounded-md border-none dark:bg-transparent px-4 shadow-none py-2"
114
value={search}
- onChange={(e) => setSearch(e.target.value)}
115
+ onChange={(e) => {
116
+ setSearch(e.target.value);
117
+ if (currentPage !== 1) {
118
119
+ }
120
+ }}
121
/>
122
</div>
123
<Link to="/plan/new">
0 commit comments