redirect for just null
This commit is contained in:
parent
fda32d78c8
commit
5e500ed4ce
|
|
@ -7,7 +7,7 @@ export async function requireChains(namespaceId: string) {
|
|||
if (chainState.chains) return;
|
||||
|
||||
const chains = await getChainList(namespaceId);
|
||||
if (chains === null || chains.length === 0) throw redirect({ to: "/" });
|
||||
if (chains === null) throw redirect({ to: "/" });
|
||||
|
||||
chainState.setChains(chains);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user