mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Change link to reference new when rowId is null
This commit is contained in:
parent
a52c148786
commit
5b031b8d84
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user