Fix error check for App component

This commit is contained in:
kPherox 2019-05-19 23:27:04 +09:00
parent 78f258495d
commit e8f73dbaa8
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -48,7 +48,7 @@ export default class App extends Vue {
// TODO: TL // TODO: TL
if (this.isStartup) { if (this.isStartup) {
ipcRenderer.once('add-timeline', (_e: Event, tl?: TimelineDoc, error?: Error) => { ipcRenderer.once('add-timeline', (_e: Event, tl?: TimelineDoc, error?: Error) => {
if (error === undefined || tl === undefined) { if (error != undefined || tl === undefined) {
console.error(error) console.error(error)
return return
} }