Skip to content
Snippets Groups Projects
Unverified Commit fa8ac7ae authored by Martin Schoeler's avatar Martin Schoeler Committed by GitHub
Browse files

fix: Infinite loading when uploading a private app (#33181)

parent 9ef096fd
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
Fixed issue that caused an infinite loading state when uploading a private app to Rocket.Chat
......@@ -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 () => {
......@@ -158,6 +161,7 @@ export const useInstallApp = (file: File, url: string): { install: () => void; i
handleEnableUnlimitedApps={() => {
openExternalLink(manageSubscriptionUrl);
setModal(null);
setInstalling(false);
}}
/>,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment