Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7edbd1

Browse files
committed
fix loading when search
1 parent 0d59610 commit c7edbd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎client/packages/lowcoder/src/util/useWorkspaceManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function workspaceReducer(state: WorkspaceState, action: WorkspaceAction): Works
3838
return {
3939
...state,
4040
searchTerm: action.payload,
41-
currentPage: 1 // Reset to page 1 when searching
41+
currentPage: 1 ,
42+
isLoading: Boolean(action.payload.trim())
4243
};
4344
case 'SET_PAGE':
4445
return { ...state, currentPage: action.payload };

0 commit comments

Comments
 (0)