Skip to content

Commit c51af25

Browse files
committed
fix(api) update widgets to accept errors from load
1 parent 3171bda commit c51af25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/actions/widget/update.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export default function update(req) {
2020
req.session.widgets = widgets;
2121
}
2222
resolve(widget);
23+
}, err => {
24+
reject(err);
2325
});
2426
}
2527
}, 1500); // simulate async db write

0 commit comments

Comments
 (0)