X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3b53b656e65fdabc32b3bc748074eb35e9df98eb..72ee613468c6dee53b98ed1469ce9781a942dbe9:/src/store/public-favorites/public-favorites-actions.ts?ds=sidebyside diff --git a/src/store/public-favorites/public-favorites-actions.ts b/src/store/public-favorites/public-favorites-actions.ts index 50b9070baf..d5a5cd4626 100644 --- a/src/store/public-favorites/public-favorites-actions.ts +++ b/src/store/public-favorites/public-favorites-actions.ts @@ -21,7 +21,7 @@ export type PublicFavoritesAction = UnionOf; export const togglePublicFavorite = (resource: { uuid: string; name: string }) => (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository): Promise => { dispatch(progressIndicatorActions.START_WORKING("togglePublicFavorite")); - const uuidPrefix = getState().config.uuidPrefix; + const uuidPrefix = getState().auth.config.uuidPrefix; const uuid = `${uuidPrefix}-j7d0g-fffffffffffffff`; dispatch(publicFavoritesActions.TOGGLE_PUBLIC_FAVORITE({ resourceUuid: resource.uuid })); const isPublicFavorite = checkPublicFavorite(resource.uuid, getState().publicFavorites); @@ -57,7 +57,7 @@ export const togglePublicFavorite = (resource: { uuid: string; name: string }) = export const updatePublicFavorites = (resourceUuids: string[]) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - const uuidPrefix = getState().config.uuidPrefix; + const uuidPrefix = getState().auth.config.uuidPrefix; const uuid = `${uuidPrefix}-j7d0g-fffffffffffffff`; dispatch(publicFavoritesActions.CHECK_PRESENCE_IN_PUBLIC_FAVORITES(resourceUuids)); services.favoriteService