Skip to content

Commit

Permalink
Fix function active/archived tab switching (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
goodoldneon committed Apr 22, 2024
1 parent cbe8654 commit 8f152d1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export function useRows({ archived }: { archived: boolean }): Output {

// Append new function data.
useEffect(() => {
if (functionsRes.data && functionsRes.data.page.page > functionsData.lastPage) {
if (!functionsRes.data || functionsRes.isLoading) {
return;
}

if (functionsRes.data.page.page > functionsData.lastPage) {
setFunctionsData((prev) => {
return {
lastPage: functionsRes.data.page.page,
Expand Down

0 comments on commit 8f152d1

Please sign in to comment.