Skip to content

Commit

Permalink
fix(ui): remove basePath on next page URI to prevent no data availabl…
Browse files Browse the repository at this point in the history
…e error (#1356)
  • Loading branch information
AlexisSouquiere authored and tchiotludo committed Apr 4, 2023
1 parent e1d7d79 commit 35ef84a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions client/src/utils/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ export const uriDeleteTopics = (clusterId, topicId) => {
};

export const uriTopicData = (clusterId, topicId, filters, nextPage = '') => {
if (nextPage !== '') {
return basePath + nextPage;
}

let uri = `${apiUrl}/${clusterId}/topic/${topicId}/data?${filters}`;
return uri;
return nextPage !== '' ? nextPage : `${apiUrl}/${clusterId}/topic/${topicId}/data?${filters}`;
};

export const uriTopicDataSearch = (clusterId, topicId, filters, offsets) => {
Expand Down

0 comments on commit 35ef84a

Please sign in to comment.