Skip to content

Commit

Permalink
ui metadata: check for version as well
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Mar 1, 2024
1 parent cc83c57 commit 3406ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codedown/uiMetadata.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ lib }:

rec {
chooseInterestingMeta = contents: {
chooseInterestingMeta = contents: (lib.optionalAttrs (contents ? "version") {
version = contents.version;
} // (lib.optionalAttrs (contents ? "meta") (
}) // (lib.optionalAttrs (contents ? "meta") (
lib.filterAttrs (n: v:
n == "description"
|| n == "homepage"
Expand Down

0 comments on commit 3406ea1

Please sign in to comment.