Skip to content

Commit 93407f3

Browse files
Rename fetchFields to debouncedFetchFields
1 parent a22290b commit 93407f3

File tree

1 file changed

+2
-2
lines changed
  • src/plugins/vis_type_timeseries/public/application/components

1 file changed

+2
-2
lines changed

src/plugins/vis_type_timeseries/public/application/components/vis_editor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class VisEditor extends Component {
7676
});
7777
}, VIS_STATE_DEBOUNCE_DELAY);
7878

79-
fetchFields = debounce(
79+
debouncedFetchFields = debounce(
8080
(extractedIndexPatterns) => {
8181
if (this.abortControllerFetchFields) {
8282
this.abortControllerFetchFields.abort();
@@ -107,7 +107,7 @@ export class VisEditor extends Component {
107107

108108
const extractedIndexPatterns = extractIndexPatterns(nextModel);
109109
if (!isEqual(this.state.extractedIndexPatterns, extractedIndexPatterns)) {
110-
this.fetchFields(extractedIndexPatterns).then((visFields) =>
110+
this.debouncedFetchFields(extractedIndexPatterns).then((visFields) =>
111111
this.setState({
112112
visFields,
113113
extractedIndexPatterns,

0 commit comments

Comments
 (0)