Skip to content

Commit

Permalink
Use widget instead of convertedWidget to probably fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN authored Aug 21, 2024
1 parent bcfbb5c commit ac60c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/widgets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ let
convertedWidget = converters.${type} widget.${type};
in
base // convertedWidget // {
position = if builtins.hasAttr "position" convertedWidget then convertedWidget.position else null;
size = if builtins.hasAttr "size" convertedWidget then convertedWidget.size else null;
position = if isAttrs widget.position then widget.position else null;
size = if isAttrs widget.size then widget.size else null;
}
else widget; # not a known composite type

Expand Down

0 comments on commit ac60c10

Please sign in to comment.