Skip to content

Commit

Permalink
fix(ui): use name instead of title for CMP parameters (argoproj#13250)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev authored and xiaowu.zhu committed Aug 9, 2023
1 parent 97a9a57 commit 309c362
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export const ApplicationParameters = (props: {
const liveParam = app.spec.source.plugin?.parameters?.find(param => param.name === name);
const pluginIcon =
announcement && liveParam ? 'This parameter has been provided by plugin, but is overridden in application manifest.' : 'This parameter is provided by the plugin.';
const isPluginPar = announcement ? true : false;
const isPluginPar = !!announcement;
if ((announcement?.collectionType === undefined && liveParam?.map) || announcement?.collectionType === 'map') {
let liveParamMap;
if (liveParam) {
Expand Down Expand Up @@ -351,7 +351,7 @@ export const ApplicationParameters = (props: {
<FormField
field='spec.source.plugin.parameters'
componentProps={{
name: announcement?.title ?? announcement?.name ?? name,
name: announcement?.name ?? name,
defaultVal: announcement?.map,
isPluginPar,
setAppParamsDeletedState
Expand Down Expand Up @@ -388,7 +388,7 @@ export const ApplicationParameters = (props: {
<FormField
field='spec.source.plugin.parameters'
componentProps={{
name: announcement?.title ?? announcement?.name ?? name,
name: announcement?.name ?? name,
defaultVal: announcement?.array,
isPluginPar,
setAppParamsDeletedState
Expand Down Expand Up @@ -429,7 +429,7 @@ export const ApplicationParameters = (props: {
<FormField
field='spec.source.plugin.parameters'
componentProps={{
name: announcement?.title ?? announcement?.name ?? name,
name: announcement?.name ?? name,
defaultVal: announcement?.string,
isPluginPar,
setAppParamsDeletedState
Expand Down

0 comments on commit 309c362

Please sign in to comment.