mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Prevent stray 'compare' param from appearing in some snapshot links
Summary: Some slight difference appeared, possibly during rebase, about including compare parameters in URLs. Test Plan: Browser test was failing, now passes Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2683
This commit is contained in:
parent
92224084e4
commit
4f263fc7ec
@ -59,7 +59,9 @@ export class DocHistory extends Disposable implements IDomComponent {
|
||||
// We include urlState().state to preserve the currently selected page.
|
||||
function setLink(snapshot: DocSnapshot, compareDocId?: string) {
|
||||
return dom.attr('href', (use) => urlState().makeUrl({
|
||||
...use(urlState().state), doc: snapshot.docId, params: {compare: compareDocId}}));
|
||||
...use(urlState().state), doc: snapshot.docId,
|
||||
params: (compareDocId ? {compare: compareDocId} : {})
|
||||
}));
|
||||
}
|
||||
|
||||
const snapshots = Observable.create<DocSnapshot[]>(owner, []);
|
||||
|
Loading…
Reference in New Issue
Block a user