CreateImageWizard: ignore org-id for on-prem

We can ignore the org-id when trying to get the state of the
blueprint during the blueprint creation. This is unnecessary
info for `on-prem`
This commit is contained in:
Gianluca Zuccarelli 2025-01-21 10:53:26 +00:00 committed by Sanne Raymaekers
parent d0a69082f3
commit a3529f9108

View file

@ -50,10 +50,16 @@ const ReviewWizardFooter = () => {
}, [isUpdateSuccess, isCreateSuccess, resetCreate, resetUpdate, navigate]);
const getBlueprintPayload = async () => {
const userData = await auth?.getUser();
const orgId = userData?.identity?.internal?.org_id;
const requestBody = orgId && mapRequestFromState(store, orgId);
return requestBody;
if (!process.env.IS_ON_PREMISE) {
const userData = await auth?.getUser();
const orgId = userData?.identity?.internal?.org_id;
const requestBody = orgId && mapRequestFromState(store, orgId);
return requestBody;
}
// NOTE: This should be fine on-prem, we should
// be able to ignore the `org-id`
return mapRequestFromState(store, '');
};
return (