Skip to content

Commit

Permalink
fix(Consumption): Changing 'undefined' check for value (#4361)
Browse files Browse the repository at this point in the history
changing check to be more general
  • Loading branch information
valentina-vallalta committed Mar 13, 2024
1 parent 4791743 commit b4e0212
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libs/designer/src/lib/core/utils/parameters/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ import {
nthLastIndexOf,
parseErrorMessage,
getRecordEntry,
isBoolean,
} from '@microsoft/logic-apps-shared';
import type {
DependentParameterInfo,
Expand Down Expand Up @@ -862,10 +861,8 @@ export function loadParameterValue(parameter: InputParameter): ValueSegment[] {

if (parameter.isNotificationUrl) {
valueObject = `@${constants.HTTP_WEBHOOK_LIST_CALLBACK_URL_NAME}`;
} else if (parameter.value || isBoolean(parameter.value)) {
valueObject = parameter.value;
} else if (parameter.default) {
valueObject = parameter.default;
} else {
valueObject = parameter?.value ?? parameter?.default;
}

let valueSegments = convertToValueSegments(valueObject, !parameter.suppressCasting /* shouldUncast */);
Expand Down

0 comments on commit b4e0212

Please sign in to comment.