Skip to content

Commit

Permalink
show loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
SKarolFolio committed Jan 24, 2025
1 parent ee0ccc5 commit 98e48f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/hooks/useRecordControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,15 @@ export const useRecordControls = () => {
const fetchExternalRecordForPreview = async (recordId?: string, idType = ExternalResourceIdType.Inventory) => {
if (!recordId) return;

setIsLoading(true);

await getRecordAndInitializeParsing({
recordId,
idType,
errorMessage: 'ld.errorFetchingExternalResourceForPreview',
});

setIsLoading(false);
};

const tryFetchExternalRecordForEdit = async (recordId?: string) => {
Expand Down

0 comments on commit 98e48f5

Please sign in to comment.