Skip to content

Commit

Permalink
Merge pull request #1146 from hotosm/fix/cookie-organization-issue
Browse files Browse the repository at this point in the history
fix: API interceptor used in getOrganizationRequest
  • Loading branch information
varun2948 authored Jan 30, 2024
2 parents f1f33f3 + c3c00f4 commit 299fad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/src/api/OrganisationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { HomeProjectCardModel } from '@/models/home/homeModel';
import { GetOrganisationDataModel, OrganisationModal } from '@/models/organisation/organisationModel';
import { CommonActions } from '@/store/slices/CommonSlice';
import { OrganisationAction } from '@/store/slices/organisationSlice';
import { API } from '.';

function appendObjectToFormData(formData, object) {
for (const [key, value] of Object.entries(object)) {
Expand Down Expand Up @@ -43,7 +44,7 @@ export const OrganisationDataService: Function = (url: string) => {
dispatch(OrganisationAction.GetOrganisationDataLoading(true));
const getOrganisationData = async (url) => {
try {
const getOrganisationDataResponse = await axios.get(url);
const getOrganisationDataResponse = await API.get(url);
const response: GetOrganisationDataModel = getOrganisationDataResponse.data;
dispatch(OrganisationAction.GetOrganisationsData(response));
} catch (error) {
Expand Down
File renamed without changes.

0 comments on commit 299fad2

Please sign in to comment.