Bugfix: KnockoutJS failed to output text '0'

This commit is contained in:
the-djmaze 2024-02-12 20:07:08 +01:00
parent 905315b164
commit a0f7114a39
3 changed files with 4 additions and 4 deletions

View file

@ -92,7 +92,7 @@ ko.utils = {
unwrapObservable: value => ko.isObservable(value) ? value() : value,
setTextContent: (element, textContent) =>
element.textContent = ko.utils.unwrapObservable(textContent) || ""
element.textContent = ko.utils.unwrapObservable(textContent)
};
ko.exportSymbol('utils', ko.utils);