Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Register MessageChannel last
  • Loading branch information
regalijan committed Oct 29, 2023
1 parent a153116 commit f6429be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/routes/mod-queue.tsx
Expand Up @@ -124,10 +124,6 @@ export default function () {
);
const toast = useToast();

useEffect(() => {
setMessageChannel(new MessageChannel());
}, []);

for (const type of pageProps.entry_types)
entryTypes.push(
<option key={type.value} value={type.value}>
Expand Down Expand Up @@ -319,6 +315,10 @@ export default function () {
itemModals[modal].onOpen();
}, []);

useEffect(() => {
setMessageChannel(new MessageChannel());
}, []);

const ItemDisplay = (
<Select
onChange={async (v) => {
Expand Down

0 comments on commit f6429be

Please sign in to comment.