Skip to content

Commit

Permalink
fix: fix config parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
melsener committed Jun 20, 2024
1 parent a8df13c commit 77a9422
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,18 @@ 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,
resourceType: resource.type,
channel: "{channelName}",
theme: "{theme}"
})}`)
});
} as pages.InstanceConfig);

saveEvent.notifySuccess();
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,18 @@ 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,
resourceType: resource.type,
channel: "{channelName}",
theme: "{theme}"
})}`)
});
} as pages.InstanceConfig);

saveEvent.notifySuccess();
} catch (error) {
Expand Down

0 comments on commit 77a9422

Please sign in to comment.