mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #3178 from appwrite/fix-member-picker-back-error
fix(permissions): drop the membership request when stepping back
This commit is contained in:
1 file changed
+7
-1
@@ -57,6 +57,12 @@
|
||||
user = null;
|
||||
memberships = undefined;
|
||||
membershipOffset = 0;
|
||||
|
||||
// Stepping back abandons the membership request. Leaving it live lets its rejection
|
||||
// land on the user step and report the user list as the thing that failed.
|
||||
latestRequest++;
|
||||
loadError = '';
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
function reset() {
|
||||
@@ -113,7 +119,7 @@
|
||||
if (requestId !== latestRequest || user?.$id !== requestedUserId) return;
|
||||
memberships = response;
|
||||
} catch (error) {
|
||||
if (requestId !== latestRequest) return;
|
||||
if (requestId !== latestRequest || user?.$id !== requestedUserId) return;
|
||||
loadError = error.message;
|
||||
addNotification({ type: 'error', message: error.message });
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user