Don't try updating queue if there are no entry types

This commit is contained in:
Regalijan 2023-11-08 15:10:58 -05:00
parent 7087b2ec16
commit cc8c03a2ea
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -337,6 +337,7 @@ export default function () {
messageChannel.current = new MessageChannel(); messageChannel.current = new MessageChannel();
(async function () { (async function () {
if (!pageProps.entry_types.length) return;
await updateQueue(pageProps.entry_types[0].value, before, false, true); await updateQueue(pageProps.entry_types[0].value, before, false, true);
})(); })();