Skip to content

Commit 6a6f0f4

Browse files
committed
Fix import-extensions post migration
1 parent 6357db6 commit 6a6f0f4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/app/src/cli/services/fetch-extensions.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ export async function getExtensions({
2626

2727
return extensionsToFilter.filter((ext) => {
2828
const isNeededExtensionType = extensionTypes.includes(ext.type.toLowerCase())
29-
const hasActiveVersion = developerPlatformClient.supportsDashboardManagedExtensions
30-
? ext.activeVersion && ext.activeVersion.config
31-
: true
29+
const hasActiveVersion = ext.activeVersion && ext.activeVersion.config
3230
const hasDraftVersion = ext.draftVersion && ext.draftVersion.config
3331
return isNeededExtensionType && (hasActiveVersion ?? hasDraftVersion)
3432
})

packages/app/src/cli/utilities/developer-platform-client/app-management-client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ export class AppManagementClient implements DeveloperPlatformClient {
572572
uuid: mod.registrationUuid!,
573573
title: mod.registrationTitle,
574574
type: mod.type,
575+
activeVersion: mod.config ? {config: JSON.stringify(mod.config)} : undefined,
575576
}
576577
if (CONFIG_EXTENSION_IDS.includes(registration.id)) {
577578
configurationRegistrations.push(registration)

0 commit comments

Comments
 (0)