Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4900097
Create debug-M3-9877.yml
bill-akamai Aug 8, 2025
a928607
Merge pull request #1 from bill-akamai/debug-M3-9877
bill-akamai Aug 8, 2025
d7a342d
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
dea2c27
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
e0c4860
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
4bad498
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
69b08f2
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
d4b6d5c
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
be58ee8
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
af74334
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
4160812
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
88c9c94
Update debug-M3-9877.yml
bill-akamai Aug 8, 2025
70626cc
Merge branch 'linode:develop' into develop
bill-akamai Aug 11, 2025
7f27a59
Merge branch 'linode:develop' into develop
bill-akamai Aug 11, 2025
c95c8b7
Merge branch 'linode:develop' into develop
bill-akamai Aug 11, 2025
135cc10
Merge branch 'linode:develop' into develop
bill-akamai Aug 13, 2025
024bbe2
Merge branch 'linode:develop' into develop
bill-akamai Aug 13, 2025
d767d5d
Remove debug .yml file
bill-akamai Aug 13, 2025
93ef604
Merge branch 'linode:develop' into develop
bill-akamai Aug 13, 2025
f18d8e9
Merge branch 'linode:develop' into develop
bill-akamai Aug 14, 2025
0f9e597
Fix autocompletes
bill-akamai Aug 14, 2025
05773d0
Update TwoStepRegion
bill-akamai Aug 15, 2025
802cd12
Revert change to LinodeSelect.tsx
bill-akamai Aug 19, 2025
383f726
Use 'distributed-ALL' as default in TwoStepRegion.tsx
bill-akamai Aug 19, 2025
05ce813
Add PowerActionsDialogOrDrawer.tsx
bill-akamai Aug 19, 2025
7a4b4a0
Added changeset: Replace undefined with null in Autocomplete values t…
bill-akamai Aug 19, 2025
1826e3f
Merge branch 'develop' into M3-10481
dmcintyr-akamai Aug 20, 2025
c38516e
Merge branch 'develop' into M3-10481
bill-akamai Aug 25, 2025
41d4432
Update MaintenancePolicySelect type
bill-akamai Aug 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-12706-fixed-1755632991962.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Replace undefined with null in Autocomplete values to fix MUI errors ([#12706](https://github.com/linode/manager/pull/12706))
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={[region]}
value={undefined}
value={null}
/>
);

Expand Down Expand Up @@ -58,7 +58,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={[region]}
value={undefined}
value={null}
/>
);

Expand Down Expand Up @@ -88,7 +88,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={[region]}
value={undefined}
value={null}
/>
);

Expand Down Expand Up @@ -118,7 +118,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={[region]}
value={undefined}
value={null}
/>
</>
);
Expand Down Expand Up @@ -152,7 +152,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={regions}
value={undefined}
value={null}
/>
);

Expand Down Expand Up @@ -271,7 +271,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={regions}
value={undefined}
value={null}
/>
);

Expand All @@ -289,7 +289,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={spyFn}
regions={regions}
value={undefined}
value={null}
/>
);

Expand Down Expand Up @@ -359,7 +359,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={regions}
value={undefined}
value={null}
/>,
{
dcGetWell: true,
Expand Down Expand Up @@ -394,7 +394,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={regions}
value={undefined}
value={null}
/>
);

Expand Down Expand Up @@ -424,7 +424,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={regions}
value={undefined}
value={null}
/>
);

Expand Down Expand Up @@ -455,7 +455,7 @@ componentTests('RegionSelect', (mount) => {
isGeckoLAEnabled={false}
onChange={() => {}}
regions={regions}
value={undefined}
value={null}
/>
);
checkComponentA11y();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface MaintenancePolicySelectProps {
hideDefaultChip?: boolean;
onChange: (policy: MaintenancePolicy) => void;
textFieldProps?: Partial<TextFieldProps>;
value?: string;
value?: null | string;
}

export const MaintenancePolicySelect = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const RegionSelect = <
});

const selectedRegion = value
? regionOptions.find((r) => r.id === value)
? (regionOptions.find((r) => r.id === value) ?? null)
: null;

const disabledRegions = regionOptions.reduce<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface RegionSelectProps<
/**
* The ID of the selected region.
*/
value: string | undefined;
value: null | string;
width?: number;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export const CloudPulseRegionSelect = React.memo(
placeholder={placeholder ?? 'Select a Region'}
regions={supportedRegionsFromResources}
value={
supportedRegionsFromResources?.length ? selectedRegion : undefined
supportedRegionsFromResources?.length
? (selectedRegion ?? null)
: null
}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const DatabaseBackups = () => {
option.value === value.value
}
label=""
onChange={(_, newTime) => setSelectedTime(newTime)}
onChange={(_, newTime) => setSelectedTime(newTime ?? null)}
options={TIME_OPTIONS}
placeholder="Choose a time"
renderOption={(props, option) => {
Expand All @@ -238,7 +238,7 @@ export const DatabaseBackups = () => {
'data-qa-time-select': true,
},
}}
value={selectedTime}
value={selectedTime ?? null}
/>
</FormControl>
</GridLegacy>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ export const CreateCluster = () => {
? 'Only regions that support LKE Enterprise clusters are listed.'
: undefined
}
value={selectedRegion?.id}
value={selectedRegion?.id || null}
/>
</Stack>
<StyledDocsLinkContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const MaintenancePolicy = () => {
: MAINTENANCE_POLICY_SELECT_REGION_TEXT
: undefined,
}}
value={field.value ?? undefined}
value={field.value ?? null}
/>
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const TwoStepRegion = (props: CombinedProps) => {
const { disabled, disabledRegions, errorText, onChange, value } = props;

const [regionFilter, setRegionFilter] =
React.useState<RegionFilterValue>('distributed');
React.useState<RegionFilterValue>('distributed-ALL');

const { data: regions } = useRegionsQuery();
const createType = useGetLinodeCreateType();
Expand Down Expand Up @@ -120,7 +120,7 @@ export const TwoStepRegion = (props: CombinedProps) => {
onChange={(e, region) => onChange(region)}
regionFilter="core"
regions={regions ?? []}
value={value}
value={value ?? null}
/>
</SafeTabPanel>
<SafeTabPanel index={1}>
Expand All @@ -131,18 +131,20 @@ export const TwoStepRegion = (props: CombinedProps) => {
</Typography>
</Box>
<Autocomplete
clearIcon={null}
defaultValue={GEOGRAPHICAL_AREA_OPTIONS[0]}
disableClearable
label="Geographical Area"
onChange={(_, selectedOption) => {
if (selectedOption?.value) {
setRegionFilter(selectedOption.value);
}
}}
options={GEOGRAPHICAL_AREA_OPTIONS}
value={GEOGRAPHICAL_AREA_OPTIONS.find(
(option) => option.value === regionFilter
)}
value={
GEOGRAPHICAL_AREA_OPTIONS.find(
(option) => option.value === regionFilter
) ?? null
}
/>
<RegionSelect
currentCapability="Linodes"
Expand All @@ -154,7 +156,7 @@ export const TwoStepRegion = (props: CombinedProps) => {
onChange={(e, region) => onChange(region)}
regionFilter={regionFilter}
regions={regions ?? []}
value={value}
value={value ?? null}
/>
</SafeTabPanel>
</TabPanels>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const ConfigureForm = React.memo((props: Props) => {
textFieldProps={{
helperText,
}}
value={selectedRegion}
value={selectedRegion ?? null}
/>
{shouldDisplayPriceComparison && selectedRegion && (
<MigrationPricing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ export const PowerActionsDialog = (props: Props) => {
loading={configsLoading}
onChange={(_, option) => setSelectConfigID(option?.value ?? null)}
options={configOptions}
value={configOptions.find(
(option) => option.value === selectedConfigID
)}
value={
configOptions.find((option) => option.value === selectedConfigID) ??
null
}
/>
)}
{props.action === 'Power Off' && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const BucketRegions = (props: Props) => {
placeholder="Select a Region"
regions={availableStorageRegions ?? []}
required={required}
value={selectedRegion}
value={selectedRegion ?? null}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ClusterSelect: React.FC<Props> = (props) => {
placeholder="Select a Region"
regions={regionOptions ?? []}
required={required}
value={selectedCluster ?? undefined}
value={selectedCluster ?? null}
/>
);
};
Expand Down