0
0
Fork 0
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:
Jason Volk 2021-08-01 00:24:58 -07:00
parent 0d4661e1ef
commit af821a9e3b

View file

@ -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];