mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
Re-enable rule prefer-destructuring (only for objects) (#10867)
This commit is contained in:
committed by
GitHub
parent
c51168a30a
commit
352e8a1afd
@@ -103,7 +103,7 @@ describe('dashboardState actions', () => {
|
||||
const thunk = saveDashboardRequest(newDashboardData, 1, 'save_dash');
|
||||
thunk(dispatch, getState);
|
||||
expect(postStub.callCount).toBe(1);
|
||||
const postPayload = postStub.getCall(0).args[0].postPayload;
|
||||
const { postPayload } = postStub.getCall(0).args[0];
|
||||
expect(postPayload.data.positions[DASHBOARD_GRID_ID].parents).toBe(
|
||||
mockParentsList,
|
||||
);
|
||||
|
||||
@@ -39,7 +39,7 @@ import {
|
||||
import { filterComponent } from '../fixtures/mockDashboardLayout';
|
||||
|
||||
describe('dashboardFilters reducer', () => {
|
||||
const form_data = sliceEntitiesForDashboard.slices[filterId].form_data;
|
||||
const { form_data } = sliceEntitiesForDashboard.slices[filterId];
|
||||
const component = filterComponent;
|
||||
const directPathToFilter = (component.parents || []).slice();
|
||||
directPathToFilter.push(component.id);
|
||||
|
||||
Reference in New Issue
Block a user