fix another direction mismatch

This commit is contained in:
Bruno Windels 2019-06-02 19:26:45 +02:00
parent c63d94947f
commit 4b5b90e199

View file

@ -63,17 +63,17 @@ export default class FragmentBoundaryEntry extends BaseEntry {
get linkedFragmentId() { get linkedFragmentId() {
if (this.started) { if (this.started) {
return this.fragment.nextId;
} else {
return this.fragment.previousId; return this.fragment.previousId;
} else {
return this.fragment.nextId;
} }
} }
set linkedFragmentId(id) { set linkedFragmentId(id) {
if (this.started) { if (this.started) {
this.fragment.nextId = id;
} else {
this.fragment.previousId = id; this.fragment.previousId = id;
} else {
this.fragment.nextId = id;
} }
} }