diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-15 19:35:51 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-15 19:35:51 -0300 |
commit | 27a1df82ac455a44965cbcaef3e3bd1765d95942 (patch) | |
tree | 047df07887a7d232a818b3c883f4d9a0542286b3 /src | |
parent | 357015de21e7e427f25b31a2622fb9182ec292e1 (diff) |
html, test: default slots only for null, not falsey values
Diffstat (limited to 'src')
-rw-r--r-- | src/util/html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/html.js b/src/util/html.js index 65a06440..a1d6962a 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -691,7 +691,7 @@ export class Template { return providedValue; } - if (providedValue) { + if (providedValue !== null) { return providedValue; } |