Skip to content

Commit

Permalink
Merge pull request #4496 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…4445-to-release-4.4

[release-4.4] Bug 1807334: fix runtime error when editing the pipeline task
  • Loading branch information
openshift-merge-robot committed Feb 27, 2020
2 parents ae154c0 + 604aec9 commit 563c7de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const TaskSidebarParam: React.FC<TaskSidebarParamProps> = (props) => {
const { hasParamError, onChange, resourceParam, taskParam } = props;
const [dirty, setDirty] = React.useState(false);

const currentValue = taskParam.value?.toString() || '';
const currentValue = taskParam?.value?.toString() || '';
const emptyIsInvalid = !resourceParam.default;

const isValid = !(dirty && hasParamError && emptyIsInvalid && currentValue === '');
Expand Down

0 comments on commit 563c7de

Please sign in to comment.