Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix: restore functionality after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Sep 10, 2018
1 parent 471da85 commit c6813c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/model/pattern-library/builtins/conditional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const Conditional = (context: BuiltInContext): BuiltInResult => {
defaultValue: true,
hidden: false,
id: context.options.getGlobalPropertyId(patternId, CONDITION_CONTEXT_ID),
inputType: Types.PatternPropertyInputType.Default,
label: 'Condition',
origin: Types.PatternPropertyOrigin.BuiltIn,
propertyName: 'condition',
Expand Down
2 changes: 1 addition & 1 deletion src/model/pattern-library/pattern-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class PatternLibrary {
public assignEnumOptionId(enumId: string, contextId: string): string {
const enumProperty = this.getPatternPropertyById(enumId) as PatternEnumProperty;

if (!enumProperty) {
if (!enumProperty || typeof enumProperty.getOptionByContextId !== 'function') {
return uuid.v4();
}

Expand Down

0 comments on commit c6813c4

Please sign in to comment.