Skip to content

Commit 72013f8

Browse files
Merge pull request #101 from PHOENIXCONTACT/fix/enum-result-conversion
Fixed enum result conversion for Execute<TEnum> in VisualInstructorExtensions
2 parents df9e1e9 + 97f750b commit 72013f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Moryx.ControlSystem/VisualInstructions/VisualInstructorExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static long Execute<T>(this IVisualInstructor instructor, string title, I
142142
if (result.SelectedResult?.Key == null)
143143
callback(EnumInstructionResult.ResultToGenericEnumValue<T>(result.Result));
144144
else
145-
callback(EnumInstructionResult.ResultToGenericEnumValue<T>(result.SelectedResult));
145+
callback(EnumInstructionResult.ResultToGenericEnumValue<T>(result.SelectedResult.Key));
146146
});
147147
}
148148

0 commit comments

Comments
 (0)