Skip to content
Prev Previous commit
Next Next commit
feat(folders): return new folder data
  • Loading branch information
antonreshetov committed Apr 12, 2022
commit 9961fd9e3069b9e192da1f877136c50c82231bbd
1 change: 1 addition & 0 deletions src/renderer/store/folders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const useFolderStore = defineStore('folders', {
await this.getFolders()
this.selectId(data.value.id)
await snippetStore.getSnippetsByFolderIds(this.selectedIds!)
return data.value as Folder
},
async patchFoldersById (id: string, body: Partial<Folder>) {
body.updatedAt = new Date().valueOf()
Expand Down