Hi @jegron, the type TimeframeSelectorProps['value'] is nullable, and the type checker can’t infer that value is actually defined. You have two options:
Use the non-null assertion operator ! like this value!.from. This is usually not recommended and will likely lead to a Forbidden non-null assertion warning.
Use the optional chaining ? and nullish coalescing ?? operators, which allow you to fall back to a default value when dealing with null or undefined. Here’s how to use them:
Hello @jegron, the useDqlQuery hook returns a refetch function, which you could use in your onChange to refetch fresh grail data. Here is a code example on the Dynatrace Developer Portal.