mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
fix shadowed variable in CustomView (#743)
This corrects a minor linting problem that recently crept in, by renaming a variable.
This commit is contained in:
parent
68801474b1
commit
2f96a56150
@ -242,7 +242,7 @@ export class CustomView extends Disposable {
|
||||
const {baseUrl, access, showAfterReady, widgetId, pluginId} = options;
|
||||
const documentSettings = this.gristDoc.docData.docSettings();
|
||||
const readonly = this.gristDoc.isReadonly.get();
|
||||
const frame = WidgetFrame.create(null, {
|
||||
const widgetFrame = WidgetFrame.create(null, {
|
||||
url: baseUrl || this.getEmptyWidgetPage(),
|
||||
widgetId,
|
||||
pluginId,
|
||||
@ -309,7 +309,7 @@ export class CustomView extends Disposable {
|
||||
// array of nodes (comment, node, comment) and it somehow breaks the dispose order. Collapsed widgets
|
||||
// relay on a correct order of dispose, and are detaching nodes just before they are disposed, so if
|
||||
// the order is wrong, the node is disposed without being detached first.
|
||||
return grains.update(frame.buildDom(), dom.autoDispose(frame));
|
||||
return grains.update(widgetFrame.buildDom(), dom.autoDispose(widgetFrame));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user