Merge pull request #412 from incubateur-territoires/bug-card-empty-reference

Bug card empty reference
This commit is contained in:
jarek
2023-02-03 19:14:11 +01:00
committed by GitHub
3 changed files with 19 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ function BaseView(gristDoc, viewSectionModel, options) {
}).extend({deferred: true}));
// Update the cursor whenever linkedRowId() changes.
this.autoDispose(this.linkedRowId.subscribe(rowId => this.setCursorPos({rowId})));
this.autoDispose(this.linkedRowId.subscribe(rowId => this.setCursorPos({rowId: rowId || 'new'})));
// Indicated whether editing the section should be disabled given the current linking state.
this.disableEditing = this.autoDispose(ko.computed(() => {