Skip to content

Commit

Permalink
Fix #1827 Infinite loading for dataset embed (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap committed Jul 30, 2024
1 parent 0dfecbb commit 1e6eca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getGeoNodeLocalConfig, parseDevHostname } from "@js/utils/APIUtils";

export const getUserInfo = (apikey) => {
const endpointV1 = getGeoNodeLocalConfig('geoNodeApi.endpointV1', '/api');
return axios.get(`${parseDevHostname(endpointV1)}/o/v4/userinfo`, {
return axios.get(parseDevHostname(`${endpointV1}/o/v4/userinfo`), {
params: {
...(apikey && { apikey })
}
Expand Down
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/js/routes/Viewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function ViewerRoute({
pluginsConfig
});

const viewer = useRef({ requestedPk: '', prevPluginsLength: null });
const viewer = useRef({ requestedPk: undefined, prevPluginsLength: null });
const { requestedPk, prevPluginsLength } = viewer.current ?? {};
useEffect(() => {
if (!prevPluginsLength || pluginsCfgLength === 0) {
Expand Down

0 comments on commit 1e6eca4

Please sign in to comment.