From 4ddc46ba259a4f031ceebfe9f6aae9e6bdacfed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Wed, 30 Nov 2016 15:58:09 -0200 Subject: [PATCH] Fix: Path was being incorrectly injected on entry for persistence. Closes #176 --- src/backends/backend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/backend.js b/src/backends/backend.js index 06c7bd29..229bc673 100644 --- a/src/backends/backend.js +++ b/src/backends/backend.js @@ -167,14 +167,14 @@ class Backend { entryObj = { path, slug, - raw: this.entryToRaw(collection, Object.assign({ path }, entryData)), + raw: this.entryToRaw(collection, entryData), }; } else { const path = entryDraft.getIn(['entry', 'path']); entryObj = { path, slug: entryDraft.getIn(['entry', 'slug']), - raw: this.entryToRaw(collection, Object.assign({ path }, entryData)), + raw: this.entryToRaw(collection, entryData), }; }