diff --git a/app/react/portainer/environments/update-schedules/CreateView/CreateView.tsx b/app/react/portainer/environments/update-schedules/CreateView/CreateView.tsx
index fc3986a75..2408a14b1 100644
--- a/app/react/portainer/environments/update-schedules/CreateView/CreateView.tsx
+++ b/app/react/portainer/environments/update-schedules/CreateView/CreateView.tsx
@@ -76,6 +76,10 @@ function CreateView() {
Edge Groups
{' '}
page to assign environments and create groups.
+
+ You can upgrade from any agent version to 2.17 or later only.
+ You can not upgrade to an agent version prior to 2.17 . The
+ ability to rollback to originating version is for 2.15.0+ only.
-
- You can upgrade from any agent version to 2.17 or later
- only. You can not upgrade to an agent version prior to
- 2.17 . The ability to rollback to originating version is
- for 2.15.0+ only.
-
-
diff --git a/app/react/portainer/environments/update-schedules/ItemView/ItemView.tsx b/app/react/portainer/environments/update-schedules/ItemView/ItemView.tsx
index 99b93c44e..90c83f6d4 100644
--- a/app/react/portainer/environments/update-schedules/ItemView/ItemView.tsx
+++ b/app/react/portainer/environments/update-schedules/ItemView/ItemView.tsx
@@ -91,7 +91,7 @@ function ItemView() {
-
+
Devices need to be allocated to an Edge group, visit the{' '}
{' '}
page to assign environments and create groups.
+
+ You can upgrade from any agent version to 2.17 or later only.
+ You can not upgrade to an agent version prior to 2.17 . The
+ ability to rollback to originating version is for 2.15.0+ only.
schema.required('No rollback options available'),
}),
registryId: number().default(0),
+ agentImage: string()
+ .default('')
+ .when('registryId', {
+ is: 0,
+ then: (schema) => schema.optional(),
+ otherwise: (schema) => schema.required('Agent image is required'),
+ }),
+ updaterImage: string()
+ .default('')
+ .when('registryId', {
+ is: 0,
+ then: (schema) => schema.optional(),
+ otherwise: (schema) => schema.required('Updater image is required'),
+ }),
});
}
diff --git a/app/react/portainer/registries/queries/useRegistries.ts b/app/react/portainer/registries/queries/useRegistries.ts
index 1f1e9eba0..007ab70cb 100644
--- a/app/react/portainer/registries/queries/useRegistries.ts
+++ b/app/react/portainer/registries/queries/useRegistries.ts
@@ -78,7 +78,6 @@ export function useGenericRegistriesQuery(
export async function getRegistries() {
try {
const { data } = await axios.get('/registries');
-
return data;
} catch (e) {
throw parseAxiosError(e as Error, 'Unable to retrieve registries');