Commit a041a94 1 parent 850f668 commit a041a94 Copy full SHA for a041a94
File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ async function addEntry () {
41
41
newEntryKeyInput .value ? .input ? .focus ()
42
42
})
43
43
} catch (err) {
44
- const title = err .data ? .data ? .issues ? .map (issue => issue .message ).join (' \n ' ) || err .message ()
44
+ const title = err .data ? .data ? .issues ? .map (issue => issue .message ).join (' \n ' ) || err .message
45
45
toast .add ({ title, color: ' red' })
46
46
}
47
47
loading .value = false
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ async function addFile () {
29
29
toast .add ({ title: ' Files created.' })
30
30
newFilesValue .value = []
31
31
} catch (err : any ) {
32
- const title = err .data ?.data ?.issues ?.map ((issue : any ) => issue .message ).join (' \n ' ) || err .message ()
32
+ const title = err .data ?.data ?.issues ?.map ((issue : any ) => issue .message ).join (' \n ' ) || err .message
33
33
toast .add ({ title , color: ' red' })
34
34
}
35
35
loading .value = false
@@ -51,7 +51,7 @@ async function deleteFile (pathname: string) {
51
51
storage .value = storage .value ! .filter (t => t .pathname !== pathname )
52
52
toast .add ({ title: ` File "${pathname }" deleted. ` })
53
53
} catch (err : any ) {
54
- const title = err .data ?.data ?.issues ?.map ((issue : any ) => issue .message ).join (' \n ' ) || err .message ()
54
+ const title = err .data ?.data ?.issues ?.map ((issue : any ) => issue .message ).join (' \n ' ) || err .message
55
55
toast .add ({ title , color: ' red' })
56
56
}
57
57
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ async function addTodo () {
30
30
newTodoInput .value ? .input ? .focus ()
31
31
})
32
32
} catch (err) {
33
- const title = err .data ? .data ? .issues ? .map (issue => issue .message ).join (' \n ' ) || err .message ()
33
+ const title = err .data ? .data ? .issues ? .map (issue => issue .message ).join (' \n ' ) || err .message
34
34
toast .add ({ title, color: ' red' })
35
35
}
36
36
loading .value = false
You can’t perform that action at this time.
0 commit comments