desktop: guard against no warning when attempting to clear warning. Fixes #449

This commit is contained in:
Chris Breiding
2017-09-11 10:20:16 -04:00
parent 3f6b71d3cd
commit 33632587ad
@@ -197,6 +197,8 @@ export default class Project {
}
@action clearWarning () {
if (!this.warning) return
this.dismissedWarnings[this._serializeWarning(this.warning)] = true
this.warning = null
}