Skip to content

Commit

Permalink
fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Mar 14, 2022
1 parent 2f8ce6f commit 36a4e91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ describe('workspace_panel', () => {
first: mockDatasource.publicAPIMock,
};
mockDatasource.toExpression.mockReturnValue('datasource');
mockDatasource.getLayers.mockReturnValue(['first']);
mockDatasource.getLayers.mockReturnValue(['table1']);

const mounted = await mountWithProvider(
<WorkspacePanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ export const VisualizationWrapper = ({
dispatchLens(
onActiveDataChange(
Object.entries(adapters.tables?.tables).reduce<Record<string, Datatable>>(
(acc, [key, value]) => ({
[key === 'default' ? defaultLayerId : key]: value,
(acc, [key, value], index, tables) => ({
[tables.length === 1 ? defaultLayerId : key]: value,
}),
{}
)
Expand Down

0 comments on commit 36a4e91

Please sign in to comment.