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