mirror of
https://github.com/matrix-construct/construct
synced 2024-12-23 22:13:55 +01:00
share/webapp: Defaulty behavior for empty flows.
This commit is contained in:
parent
0d4661e1ef
commit
af821a9e3b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ mc.auth = async function(flows = {}, opts = {})
|
|||
{
|
||||
let request = mc.m.login.get();
|
||||
let login = await request.response;
|
||||
Object.update(flows, login.flows);
|
||||
Object.update(flows, maybe(() => login.flows));
|
||||
for(let i in flows)
|
||||
{
|
||||
let flow = flows[i];
|
||||
|
|
Loading…
Reference in a new issue