Expired links (#94)
1. Handle expired links on signup 2.Reject invitations when user is already a member 3. Make sure not to display errors due to Next.js redirection during team creation 4. Fix documentation sidebar
This commit is contained in:
committed by
GitHub
parent
ae9c33aea4
commit
97d2cf9f85
@@ -146,6 +146,11 @@ class KeystaticClient implements CmsClient {
|
||||
continue;
|
||||
}
|
||||
|
||||
// If the parent is already set, we don't need to do anything
|
||||
if (item.entry.parent !== null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isIndexFile(item.slug)) {
|
||||
item.entry.parent = null;
|
||||
results[i] = item;
|
||||
@@ -167,6 +172,7 @@ class KeystaticClient implements CmsClient {
|
||||
item.entry.parent = findClosestValidParent(pathParts);
|
||||
}
|
||||
}
|
||||
|
||||
results[i] = item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user