The automatic refresh task of the dashboard is not working properly.

I used the date component, selected the last week, and the 5 minutes selected by the Refresh Schedule, but this query did not refresh automatically.
The error in the log is as follows


Then I checked the code and the database and found that the type stored in the database is data-range, and the value is d_last_week, but the value will be judged in the code

It is obvious that the code cannot pass here, so an error is reported, and the update task cannot be executed automatically. Is there any way to solve this?