Skip to content

Commit

Permalink
Error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
frievoe97 committed Mar 22, 2022
1 parent cf89ec2 commit e4b3606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default new Vuex.Store({
colorScheme: ColorScheme.LightMode,
locale: 'en',
localFileHandles: [] as any[],
runFolders: {},
runFolders: {} as { [root: string]: any[] },
runFolderCount: 0,
resizeEvents: 0,
viewState: initialViewState() as {
Expand Down Expand Up @@ -118,7 +118,7 @@ export default new Vuex.Store({
if (!value.jump) state.viewState = value
else if (state.viewState.initial) state.viewState = value
},
error(state: GlobalState, value: Warnings) {
error(state, value: Warnings) {
// don't repeat yourself
if (
!state.statusErrors.length ||
Expand All @@ -127,7 +127,7 @@ export default new Vuex.Store({
state.statusErrors.push(value)
}
},
setStatus(state: GlobalState, value: { type: Status; msg: string; desc?: string }) {
setStatus(state, value: { type: Status; msg: string; desc?: string }) {
if (!value.desc?.length) {
value.desc = ''
}
Expand Down

0 comments on commit e4b3606

Please sign in to comment.