From 2f826ac35155eda883773d840b76116c4bcc9630 Mon Sep 17 00:00:00 2001 From: AtuyL Date: Thu, 22 Nov 2018 19:40:39 +0900 Subject: [PATCH] fix: changing title still keep on the next session. --- app/actions/dat-middleware.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions/dat-middleware.js b/app/actions/dat-middleware.js index de301f1a..f0b6f3b5 100644 --- a/app/actions/dat-middleware.js +++ b/app/actions/dat-middleware.js @@ -88,10 +88,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))