Skip to content

Commit

Permalink
Update packages Dec 2024 and fix issues (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte authored Dec 5, 2024
1 parent d21acb6 commit 7f09c7a
Show file tree
Hide file tree
Showing 5 changed files with 1,987 additions and 5,844 deletions.
8 changes: 5 additions & 3 deletions common/components/inputs/DateSelection/DatePickers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ export const DatePickers: React.FC<DatePickerProps> = ({ range, setRange, type,
placeholder={'mm/dd/yyyy'}
options={FLAT_PICKER_OPTIONS[tab]}
onChange={(dates, currentDateString) => {
isSingleDate
? handleDateChange(currentDateString)
: handleStartDateChange(currentDateString);
if (isSingleDate) {
handleDateChange(currentDateString);
} else {
handleStartDateChange(currentDateString);
}
}}
onMonthChange={() => updateColor(line)}
onOpen={() => updateColor(line)}
Expand Down
1 change: 0 additions & 1 deletion common/components/widgets/MiniWidgetCreator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export interface MiniWidgetObject {
widgetValue: WidgetValueInterface;
text: string;
}
[];

interface MiniWidgetCreatorProps {
widgetObjects: MiniWidgetObject[];
Expand Down
4 changes: 3 additions & 1 deletion modules/navigation/SidebarTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const SidebarTabs: React.FC<SidebarTabs> = ({ tabs, close }) => {
const handleChange = (enabled: boolean, tab: PageMetadata) => {
if (!enabled) return null;
handlePageConfig(tab);
close && close();
if (close) {
close();
}
};

return (
Expand Down
Loading

0 comments on commit 7f09c7a

Please sign in to comment.