Add catch to await calls

This commit is contained in:
G.Ambatte committed 2024-10-21 16:21:41 +13:00
1 parent 4dd07a3c11
commit 0c98f832bb
1 file changed
+2 -2
+2 -2
View File
@@ -228,8 +228,8 @@ const EditPage = createClass({
htmlErrors : Markdown.validate(prevState.brew.text)
}));
await updateHistory(this.state.brew);
await versionHistoryGarbageCollection();
await updateHistory(this.state.brew).catch(console.error);
await versionHistoryGarbageCollection().catch(console.error);
const transfer = this.state.saveGoogle == _.isNil(this.state.brew.googleId);