mirror of
https://github.com/apache/superset.git
synced 2026-05-21 15:55:10 +00:00
fix(CRUD/listviews): Errors with rison and search strings using special characters (#18056)
* fix errors with rison and useQueryParams * add test for encode/decode * add rison link and make test case more readable Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
This commit is contained in:
@@ -75,7 +75,7 @@ const fetchTimeRange = async (
|
||||
timeRange: string,
|
||||
endpoints?: TimeRangeEndpoints,
|
||||
) => {
|
||||
const query = rison.encode(timeRange);
|
||||
const query = rison.encode_uri(timeRange);
|
||||
const endpoint = `/api/v1/time_range/?q=${query}`;
|
||||
try {
|
||||
const response = await SupersetClient.get({ endpoint });
|
||||
|
||||
Reference in New Issue
Block a user