Skip to content

Commit

Permalink
fix(datasets): Fix property selection on JSON response (#22944)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyml authored Feb 1, 2023
1 parent 260ac40 commit b410dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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} />,
Expand Down

0 comments on commit b410dbb

Please sign in to comment.