Skip to content

Commit

Permalink
fix: Infinite loading when uploading a private app (#33181)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler committed Sep 11, 2024
1 parent 9ef096f commit fa8ac7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-hats-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed issue that caused an infinite loading state when uploading a private app to Rocket.Chat
8 changes: 6 additions & 2 deletions apps/meteor/client/views/marketplace/hooks/useInstallApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ export const useInstallApp = (file: File, url: string): { install: () => void; i
};

const extractManifestFromAppFile = async (appFile: File) => {
const manifest = await getManifestFromZippedApp(appFile);
return manifest;
try {
return getManifestFromZippedApp(appFile);
} catch (error) {
handleInstallError(error as Error);
}
};

const install = async () => {
Expand Down Expand Up @@ -158,6 +161,7 @@ export const useInstallApp = (file: File, url: string): { install: () => void; i
handleEnableUnlimitedApps={() => {
openExternalLink(manageSubscriptionUrl);
setModal(null);
setInstalling(false);
}}
/>,
);
Expand Down

0 comments on commit fa8ac7a

Please sign in to comment.