Skip to content

Commit

Permalink
fix(datasets): Fix property selection on JSON response (apache#22944)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyml authored and PawankumarES committed Feb 13, 2023
1 parent edac72e commit f22fe3f
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 f22fe3f

Please sign in to comment.