Skip to content

Commit

Permalink
fix: [M3-8912] - Create support ticket for buckets created through le…
Browse files Browse the repository at this point in the history
…gacy flow (#11300)

* fix: [M3-8912] - Create support ticket for bucket created through legacy flow

* Added changeset: Create support ticket for buckets created through legacy flow
  • Loading branch information
harsh-akamai authored Dec 6, 2024
1 parent 8485b52 commit 3d62d31
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11300-fixed-1732196456888.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Create support ticket for buckets created through legacy flow ([#11300](https://github.com/linode/manager/pull/11300))
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ export const SupportTicketProductSelectionFields = (props: Props) => {
if (entityType === 'bucket') {
return (
reactQueryEntityDataMap['bucket']?.buckets?.map(
({ label, region }) => ({
label,
value: region ?? '',
})
({ cluster, label, region }) => {
return {
label,
value: region ?? cluster,
};
}
) || []
);
}
Expand Down Expand Up @@ -185,8 +187,15 @@ export const SupportTicketProductSelectionFields = (props: Props) => {
: undefined;

const selectedEntity =
entityOptions.find((thisEntity) => String(thisEntity.value) === entityId) ||
null;
entityType === 'bucket'
? entityOptions.find(
(thisEntity) =>
String(thisEntity.value) === entityId &&
thisEntity.label === entityInputValue
) || null
: entityOptions.find(
(thisEntity) => String(thisEntity.value) === entityId
) || null;

const renderEntityTypes = () => {
return Object.keys(ENTITY_MAP).map((key: string) => {
Expand Down

0 comments on commit 3d62d31

Please sign in to comment.