Fix: Path was being incorrectly injected on entry for persistence. Closes #176

This commit is contained in:
Cássio Zen 2016-11-30 15:58:09 -02:00
parent aea6d38121
commit 4ddc46ba25

View File

@ -167,14 +167,14 @@ class Backend {
entryObj = { entryObj = {
path, path,
slug, slug,
raw: this.entryToRaw(collection, Object.assign({ path }, entryData)), raw: this.entryToRaw(collection, entryData),
}; };
} else { } else {
const path = entryDraft.getIn(['entry', 'path']); const path = entryDraft.getIn(['entry', 'path']);
entryObj = { entryObj = {
path, path,
slug: entryDraft.getIn(['entry', 'slug']), slug: entryDraft.getIn(['entry', 'slug']),
raw: this.entryToRaw(collection, Object.assign({ path }, entryData)), raw: this.entryToRaw(collection, entryData),
}; };
} }