fix(datasets): Fix property selection on JSON response (#22944)
This commit is contained in:
parent
260ac40b23
commit
b410dbb5dd
|
|
@ -138,7 +138,7 @@ fetchMock.get(schemasEndpoint, {
|
|||
|
||||
fetchMock.get(tablesEndpoint, {
|
||||
tableLength: 3,
|
||||
options: [
|
||||
result: [
|
||||
{ value: 'Sheet1', type: 'table', extra: null },
|
||||
{ value: 'Sheet2', type: 'table', extra: null },
|
||||
{ value: 'Sheet3', type: 'table', extra: null },
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ export default function LeftPanel({
|
|||
(url: string) => {
|
||||
SupersetClient.get({ url })
|
||||
.then(({ json }) => {
|
||||
const options: TableOption[] = json.options.map((table: Table) => {
|
||||
const options: TableOption[] = json.result.map((table: Table) => {
|
||||
const option: TableOption = {
|
||||
value: table.value,
|
||||
label: <TableOption table={table} />,
|
||||
|
|
|
|||
Loading…
Reference in New Issue