Fix: Path was being incorrectly injected on entry for persistence. Closes #176
This commit is contained in:
parent
aea6d38121
commit
4ddc46ba25
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user