Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix: changing title still keep on the next session.
Browse files Browse the repository at this point in the history
  • Loading branch information
AtuyL committed Nov 23, 2018
1 parent 8e939d1 commit 2401e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/actions/dat-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export default class DatMiddleware {
this.listeners.forEach(listener => listener(action))
}

async updateTitle ({ key, editValue }) {
async updateTitle ({ key, title }) {
const dat = this.dats[key]
const filePath = joinPath(dat.path, 'dat.json')
const metadata = { ...dat.dat.metadata, title: editValue }
const metadata = { ...dat.dat.metadata, title: title }

try {
await writeFile(filePath, JSON.stringify(metadata))
Expand Down

0 comments on commit 2401e48

Please sign in to comment.