Skip to content

Commit

Permalink
Merge pull request #286 from hotosm/feat/update-assets-download-url
Browse files Browse the repository at this point in the history
Feat:update assets download url and add loader
  • Loading branch information
suzit-10 authored Oct 14, 2024
2 parents c5dc954 + bdc17fe commit 18a114a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/services/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export const getRequestedTasks = () =>
authenticated(api).get('/tasks/requested_tasks/pending');

export const getAllAssetsUrl = (projectId: string) =>
authenticated(api).get(`/projects/assets/${projectId}`);
authenticated(api).get(`/projects/assets/${projectId}/`);
4 changes: 2 additions & 2 deletions src/frontend/src/views/IndividualProject/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ const IndividualProject = () => {
{getActiveTabContent(
individualProjectActiveTab,
projectData as Record<string, any>,
isProjectDataFetching,
isProjectDataFetching || isFetching,
)}
</div>
</div>
<div className="naxatw-order-1 naxatw-h-[calc(100vh-10rem)] naxatw-w-full md:naxatw-order-2">
{isProjectDataFetching ? (
{isProjectDataFetching || isFetching ? (
<Skeleton className="naxatw-h-full naxatw-w-full" />
) : (
<MapSection projectData={projectData as Record<string, any>} />
Expand Down

0 comments on commit 18a114a

Please sign in to comment.