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 = {
|
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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user