removed then() after submit

This commit is contained in:
Oleh Polisan 2024-04-17 23:17:39 +03:00
parent 1d5000e619
commit 6c523503b6

View file

@ -466,7 +466,8 @@ function ModalComponent({
submit({
id: selected!,
...settings
}).then(() => {
});
setTimeout(() => {
conn = [...MediaEngineStore.getMediaEngine().connections].find(
connection => connection.streamUserId === UserStore.getCurrentUser().id
@ -491,7 +492,6 @@ function ModalComponent({
});
}
}, 100);
});
} catch (error) {
logger.error("Error while submitting stream.", error);
}