diff --git a/src/renderers/Chart.tsx b/src/renderers/Chart.tsx index 231120817..c80092b4c 100644 --- a/src/renderers/Chart.tsx +++ b/src/renderers/Chart.tsx @@ -124,11 +124,7 @@ export class Chart extends React.Component { if (query) { return this.receive(query); - } else if (!env || !env.fetcher || !api) { - return; - } - - if (!isEffectiveApi(api, store.data)) { + } else if (!env || !env.fetcher || !isEffectiveApi(api, store.data)) { return; } diff --git a/src/renderers/Form/ChainedSelect.tsx b/src/renderers/Form/ChainedSelect.tsx index 4fc701913..e0c21562c 100644 --- a/src/renderers/Form/ChainedSelect.tsx +++ b/src/renderers/Form/ChainedSelect.tsx @@ -102,7 +102,7 @@ export default class ChainedSelectControl extends React.Component { env - .fetcher(source, { + .fetcher(source as Api, { ...data, value: arr, level: idx + 1, diff --git a/src/renderers/Nav.tsx b/src/renderers/Nav.tsx index 6026e963c..8234eb324 100644 --- a/src/renderers/Nav.tsx +++ b/src/renderers/Nav.tsx @@ -120,7 +120,7 @@ export default class Navigation extends React.Component { if (!this.mounted) { return;