Skip to content

Commit

Permalink
"proposed fix for non-reacting observable" by oleg-odysseus
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-odysseus committed Dec 9, 2024
1 parent ba37495 commit 9a7f8ac
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ define([
self.expression = params.expression;
self.options = options;

self.useDateTime = self.expression().UseDatetime;
// self.useDateTime.subscribe(val => self.expression().useDateTime = val);
self.useDateTime = ko.observable(self.expression().UseDatetime());
self.useDateTime.subscribe(function (newValue) {
self.expression().UseDatetime(newValue);
});

self.showCensorWindow = ko.observable(
self.expression().CensorWindow().StartDate() ||
self.expression().CensorWindow().EndDate()
Expand Down

0 comments on commit 9a7f8ac

Please sign in to comment.