mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
chore(explore): remove unnecessary favstar redirect (#16288)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user