Skip to content
Snippets Groups Projects
Unverified Commit 65189b42 authored by Henrique Guimarães Ribeiro's avatar Henrique Guimarães Ribeiro Committed by GitHub
Browse files

Regression: Fix blackscreen after app install (#25950)

parent 7857ff48
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ class AppClientOrchestrator {
return app;
}
public async getAppFromMarketplace(appId: string, version: string): Promise<App> {
public async getAppFromMarketplace(appId: string, version: string): Promise<{ app: App; success: boolean }> {
const result = await APIClient.get(
`/apps/${appId}` as any,
{
......
......@@ -247,7 +247,7 @@ const AppsProvider: FC = ({ children }) => {
useEffect(() => {
const handleAppAddedOrUpdated = async (appId: string): Promise<void> => {
let marketplaceApp: App | undefined;
let marketplaceApp: { app: App; success: boolean } | undefined;
let installedApp: App;
try {
......@@ -266,12 +266,13 @@ const AppsProvider: FC = ({ children }) => {
if (marketplaceApp !== undefined) {
const { status, version, licenseValidation } = installedApp;
const record = {
...marketplaceApp,
...marketplaceApp.app,
success: marketplaceApp.success,
installed: true,
status,
version,
licenseValidation,
marketplaceVersion: marketplaceApp.version,
marketplaceVersion: marketplaceApp.app.version,
};
const [, installedApps] = getCurrentData();
......
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