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:
Harsh Mahajan authored and GitHub committed 2026-08-21 10:12:21 +05:30
commit 3ee4f75725
1 file changed
+7 -1
+7 -1
View File
@@ -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 {