Skip to content

Commit

Permalink
fix: [M3-8958] - LinodeCreate OS Panel fetches region with -1 on page…
Browse files Browse the repository at this point in the history
… load (#11356)

* Dont pass -1 as default

* Added changeset: LinodeCreate OS Panel fetches region with -1 on page load
  • Loading branch information
abailly-akamai authored Dec 3, 2024
1 parent dbaa3dd commit d57c38d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11356-fixed-1733237715392.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

LinodeCreate OS Panel fetches region with -1 on page load ([#11356](https://github.com/linode/manager/pull/11356))
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const OperatingSystems = () => {
name: 'region',
});

const { data: region } = useRegionQuery(regionId ?? -1);
const { data: region } = useRegionQuery(regionId);

const isCreateLinodeRestricted = useRestrictedGlobalGrantCheck({
globalGrantType: 'add_linodes',
Expand Down

0 comments on commit d57c38d

Please sign in to comment.