Hi team,
Since I updated my DotVVM packages to the latest 4.3.0 version along with DotVVM.Controls.Bootstrap4 to 4.3.0, I’m getting errors as shown in the console log below.
It happens when using a binding such as Visible="{value: !MyList.FirstOrDefault(x => x.ID == SelectedID).SomeProperty}"
. This used to work fine before the update, is there something I need to change or update in my code?
I don’t see any compile time issues or any concerns from the ’ Compilation status page’. Any assistance would be greatly appreciated!
VM391:3
Uncaught TypeError: MyList(...)?.find(...)?.SomeProperty is not a function
at visible (eval at createBindingsStringEvaluator (knockout:3301:16), <anonymous>:3:130)
at evaluateValueAccessor (knockout:3574:16)
at knockout:3751:32
at update (knockout:5628:47)
at ko.dependentObservable.disposeWhenNodeIsRemoved (knockout:3825:33)
at Function.evaluateImmediate_CallReadThenEndDependencyDetection (knockout:2411:103)
at Function.evaluateImmediate_CallReadWithDependencyDetection (knockout:2368:29)
at Function.evaluateImmediate (knockout:2333:28)
at Function.evaluatePossiblyAsync (knockout:2298:32)
at Function.notifySubscribers (knockout:1456:38)
visible @ VM391:3
evaluateValueAccessor @ knockout:3574
(anonymous) @ knockout:3751
update @ knockout:5628
ko.dependentObservable.disposeWhenNodeIsRemoved @ knockout:3825
evaluateImmediate_CallReadThenEndDependencyDetection @ knockout:2411
evaluateImmediate_CallReadWithDependencyDetection @ knockout:2368
evaluateImmediate @ knockout:2333
evaluatePossiblyAsync @ knockout:2298
notifySubscribers @ knockout:1456
valueHasMutated @ knockout:1709
observable @ knockout:1672
writeValueToProperty @ knockout:2984
(anonymous) @ knockout:5520
run @ knockout:80
valueUpdateHandler @ knockout:5515
(anonymous) @ knockout:5607
dispatch @ jquery-3.6.1.min.js:2
y.handle @ jquery-3.6.1.min.js:2