diff --git a/app/actions/dat-middleware.js b/app/actions/dat-middleware.js index d953e10c..5fe19fe7 100644 --- a/app/actions/dat-middleware.js +++ b/app/actions/dat-middleware.js @@ -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))