Skip to content

Commit 385a24d

Browse files
authored
Bugfix: Intersection Wellpicks layer re-render issue (#726)
1 parent 3ac446c commit 385a24d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

frontend/src/modules/Intersection/settings/components/layerSettings/wellpicksLayer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export function WellpicksLayerSettingsComponent(props: WellpicksLayerSettingsCom
2626
function propagateSettingsChange() {
2727
props.layer.maybeUpdateSettings(newSettings);
2828
props.layer.maybeRefetchData();
29-
setNewSettings({});
3029
},
3130
[newSettings, props.layer]
3231
);

frontend/src/modules/Intersection/utils/layers/BaseLayer.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export class BaseLayer<TSettings extends LayerSettings, TData> {
4848
private _lastDataFetchSettings: TSettings;
4949
private _queryKeys: unknown[][] = [];
5050
private _error: StatusMessage | string | null = null;
51-
private _refetchRequested: boolean = false;
5251
private _cancellationPending: boolean = false;
5352

5453
constructor(name: string, settings: TSettings) {
@@ -132,9 +131,7 @@ export class BaseLayer<TSettings extends LayerSettings, TData> {
132131
this.maybeCancelQuery().then(() => {
133132
this._settings = { ...this._settings, ...patchesToApply };
134133
this.notifySubscribers(LayerTopic.SETTINGS);
135-
if (this._refetchRequested) {
136-
this.maybeRefetchData();
137-
}
134+
this.maybeRefetchData();
138135
});
139136
} else {
140137
this._cancellationPending = false;
@@ -224,7 +221,6 @@ export class BaseLayer<TSettings extends LayerSettings, TData> {
224221
}
225222

226223
if (this._cancellationPending) {
227-
this._refetchRequested = true;
228224
return;
229225
}
230226

0 commit comments

Comments
 (0)