Register MessageChannel last
This commit is contained in:
parent
a153116071
commit
f6429be055
@ -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}>
|
||||
@ -319,6 +315,10 @@ export default function () {
|
||||
itemModals[modal].onOpen();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
setMessageChannel(new MessageChannel());
|
||||
}, []);
|
||||
|
||||
const ItemDisplay = (
|
||||
<Select
|
||||
onChange={async (v) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user