fix(datasets): Fix property selection on JSON response (#22944)

This commit is contained in:
Cody Leff 2023-02-01 11:58:03 -08:00 committed by GitHub
parent 260ac40b23
commit b410dbb5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 },

View File

@ -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} />,