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

Skip to content

Commit ffa7757

Browse files
committed
fix delete sync
1 parent 0611910 commit ffa7757

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎client/packages/lowcoder/src/redux/sagas/orgSagas.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
fetchLastMonthAPIUsageActionSuccess,
2626
UpdateUserGroupRolePayload,
2727
UpdateUserOrgRolePayload,
28+
fetchWorkspacesAction,
2829
} from "redux/reduxActions/orgActions";
2930
import { getUser } from "redux/selectors/usersSelectors";
3031
import { validateResponse } from "api/apiUtils";
@@ -270,6 +271,8 @@ export function* deleteOrgSaga(action: ReduxAction<{ orgId: string }>) {
270271
orgId: action.payload.orgId,
271272
},
272273
});
274+
// Refetch workspaces to update the profile dropdown
275+
yield put(fetchWorkspacesAction(1, 10));
273276
}
274277
} catch (error: any) {
275278
messageInstance.error(error.message);

0 commit comments

Comments
 (0)