removed then() after submit
This commit is contained in:
parent
1d5000e619
commit
6c523503b6
1 changed files with 25 additions and 25 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue