Skip to content

Commit

Permalink
FIX defaults filled from input info in ControlInfo map parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcsmith-net committed Jun 26, 2024
1 parent a7ea005 commit 235e748
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private static ControlInfo propertyFromData(PMap data) {
var inputs = PArray.from(data.asMap().getOrDefault(KEY_INPUTS, PArray.EMPTY))
.map(a -> a.asListOf(ArgumentInfo.class))
.orElseThrow(IllegalArgumentException::new);
var defaults = PArray.from(data.asMap().getOrDefault(KEY_INPUTS, PArray.EMPTY))
var defaults = PArray.from(data.asMap().getOrDefault(KEY_DEFAULTS, PArray.EMPTY))
.map(a -> a.asList())
.orElseThrow(IllegalArgumentException::new);

Expand Down

0 comments on commit 235e748

Please sign in to comment.