mirror of
https://github.com/apache/superset.git
synced 2026-06-01 05:39:17 +00:00
fix(datasets): Fix property selection on JSON response (#22944)
This commit is contained in:
@@ -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} />,
|
||||
|
||||
Reference in New Issue
Block a user