Register MessageChannel last
This commit is contained in:
parent
a153116071
commit
f6429be055
@ -124,10 +124,6 @@ export default function () {
|
|||||||
);
|
);
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setMessageChannel(new MessageChannel());
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
for (const type of pageProps.entry_types)
|
for (const type of pageProps.entry_types)
|
||||||
entryTypes.push(
|
entryTypes.push(
|
||||||
<option key={type.value} value={type.value}>
|
<option key={type.value} value={type.value}>
|
||||||
@ -319,6 +315,10 @@ export default function () {
|
|||||||
itemModals[modal].onOpen();
|
itemModals[modal].onOpen();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setMessageChannel(new MessageChannel());
|
||||||
|
}, []);
|
||||||
|
|
||||||
const ItemDisplay = (
|
const ItemDisplay = (
|
||||||
<Select
|
<Select
|
||||||
onChange={async (v) => {
|
onChange={async (v) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user