Skip to content

Commit

Permalink
fix(ui): use name instead of title for CMP parameters (#13250) (#13337)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and crenshaw-dev committed Apr 24, 2023
1 parent 6ec093d commit 1adbebf
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 1adbebf

Please sign in to comment.