Skip to content

Commit

Permalink
Add builtins to hasAttr
Browse files Browse the repository at this point in the history
Forgot it again
  • Loading branch information
HeitorAugustoLN authored Aug 21, 2024
1 parent 86340e9 commit bcfbb5c
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 hasAttr "position" convertedWidget then convertedWidget.position else null;
size = if hasAttr "size" convertedWidget then convertedWidget.size else null;
position = if builtins.hasAttr "position" convertedWidget then convertedWidget.position else null;
size = if builtins.hasAttr "size" convertedWidget then convertedWidget.size else null;
}
else widget; # not a known composite type

Expand Down

0 comments on commit bcfbb5c

Please sign in to comment.