chore(explore): remove unnecessary favstar redirect (#16288)

This commit is contained in:
Ville Brofeldt
2021-08-17 09:09:38 +03:00
committed by GitHub
parent be7065faf8
commit 2be84e78d2

View File

@@ -70,7 +70,7 @@ export const FETCH_FAVE_STAR = 'FETCH_FAVE_STAR';
export function fetchFaveStar(sliceId: string) {
return function (dispatch: Dispatch) {
SupersetClient.get({
endpoint: `${FAVESTAR_BASE_URL}/${sliceId}/count`,
endpoint: `${FAVESTAR_BASE_URL}/${sliceId}/count/`,
}).then(({ json }) => {
if (json.count > 0) {
dispatch(toggleFaveStar(true));