diff --git a/src/client/containers/ConfigurationCreateContainer/hooks/useConfigurationCreate.ts b/src/client/containers/ConfigurationCreateContainer/hooks/useConfigurationCreate.ts index 387a76e..fb81cae 100644 --- a/src/client/containers/ConfigurationCreateContainer/hooks/useConfigurationCreate.ts +++ b/src/client/containers/ConfigurationCreateContainer/hooks/useConfigurationCreate.ts @@ -100,9 +100,10 @@ export const useConfigurationCreate = ({ } }); + // Although there is no 'configName' in the interface, not using it results in empty config name in edit connector menu await pages.config.setConfig({ entityId: configurationId, - suggestedDisplayName: resource.name, + configName: resource.name, contentUrl: decodeURI(`${window.location.origin}${url.getHomeUrl({ id: configurationId, resourceName: resource.name, @@ -110,7 +111,7 @@ export const useConfigurationCreate = ({ channel: "{channelName}", theme: "{theme}" })}`) - }); + } as pages.InstanceConfig); saveEvent.notifySuccess(); } catch (error) { diff --git a/src/client/containers/ConfigurationUpdateContainer/hooks/useConfigurationUpdate.ts b/src/client/containers/ConfigurationUpdateContainer/hooks/useConfigurationUpdate.ts index ea71b74..95abebf 100644 --- a/src/client/containers/ConfigurationUpdateContainer/hooks/useConfigurationUpdate.ts +++ b/src/client/containers/ConfigurationUpdateContainer/hooks/useConfigurationUpdate.ts @@ -91,9 +91,10 @@ export const useConfigurationUpdate = ({ } }); + // Although there is no 'configName' in the interface, not using it results in empty config name in edit connector menu await pages.config.setConfig({ entityId: configurationId, - suggestedDisplayName: resource.name, + configName: resource.name, contentUrl: decodeURI(`${window.location.origin}${url.getHomeUrl({ id: configurationId, resourceName: resource.name, @@ -101,7 +102,7 @@ export const useConfigurationUpdate = ({ channel: "{channelName}", theme: "{theme}" })}`) - }); + } as pages.InstanceConfig); saveEvent.notifySuccess(); } catch (error) {