update fixes

This commit is contained in:
Nate Kelley 2025-05-29 08:40:12 -06:00
parent cd5fa05b54
commit 8d2df038fb
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 6 additions and 9 deletions

View File

@ -29,7 +29,7 @@
"lineWidth": 100
},
"organizeImports": {
"enabled": false
"enabled": true
},
"linter": {
"enabled": true,

View File

@ -1,6 +1,5 @@
import React from 'react';
import type { BusterUserFavorite } from '@/api/asset_interfaces/users';
import { ISidebarGroup } from '@/components/ui/sidebar';
import type { ISidebarGroup } from '@/components/ui/sidebar';
import { assetTypeToIcon, assetTypeToRoute } from '../config/assetIcons';
import { useMemoizedFn } from '@/hooks';
import {
@ -41,9 +40,10 @@ export const useFavoriteSidebarPanel = () => {
return id === dashboardId;
case ShareAssetType.COLLECTION:
return id === collectionId;
default:
default: {
const _exhaustiveCheck: never = assetType;
return false;
}
}
});

View File

@ -9,9 +9,7 @@ vi.mock('@/lib/messages', () => ({
isNumericColumnType: vi.fn()
}));
const mockedIsNumericColumnType = isNumericColumnType as anyedFunction<
typeof isNumericColumnType
>;
const mockedIsNumericColumnType = isNumericColumnType as anyedFunction<typeof isNumericColumnType>;
describe('canSupportTrendlineRecord', () => {
const trendlineTypes: Trendline['type'][] = [

View File

@ -1,7 +1,6 @@
import { BusterChartLegendItem } from './interfaces';
import type { BusterChartLegendItem } from './interfaces';
import { LegendItem } from './LegendItem';
import { renderToString } from 'react-dom/server';
import React from 'react';
const WIDTH_OF_OVERFLOW = 79;