mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
landscape: redirect properly on channel archive
Previously landed on a crash.
This commit is contained in:
parent
3805f55b43
commit
8ba29acc15
@ -151,7 +151,7 @@ export function GraphPermissions(props: GraphPermissionsProps) {
|
||||
}
|
||||
};
|
||||
|
||||
const schema = formSchema(Array.from(group.members));
|
||||
const schema = formSchema(Array.from(group?.members ?? []));
|
||||
|
||||
return (
|
||||
<Formik
|
||||
|
@ -51,8 +51,8 @@ export function ChannelPopoverRoutes(props: ChannelPopoverRoutesProps) {
|
||||
};
|
||||
const handleArchive = async () => {
|
||||
const [,,,name] = association.resource.split('/');
|
||||
await api.graph.deleteGraph(name);
|
||||
history.push(props.baseUrl);
|
||||
api.graph.deleteGraph(name);
|
||||
return history.push(props.rootUrl);
|
||||
};
|
||||
|
||||
const canAdmin = isChannelAdmin(group, association.resource);
|
||||
|
Loading…
Reference in New Issue
Block a user