Currently, I am attempting to create a logical statement using a hierarchy structure as shown below:
if ((config.elementConfig.curve[0].dataset[0].splitBy = 'my discrete var')) {.....
However, when implementing this statement, I encounter the error "error Unexpected constant condition no-constant-condition" from TypeScript.
What modifications can I make to satisfy TypeScript's requirements?