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 = {
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),
};
}