Skip to content

Commit

Permalink
Merge pull request #4729 from Shopify/dont-remove-first-class-fields-…
Browse files Browse the repository at this point in the history
…on-dev-stable

[Stable] Fix crash on dev when making changes in an extension
  • Loading branch information
isaacroldan authored Oct 23, 2024
2 parents 7951b24 + fc58722 commit 728f5b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-pears-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/app': patch
---

Fix issue with dev crashing after making a change in an extension
4 changes: 1 addition & 3 deletions packages/app/src/cli/services/dev/update-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
} from '../../models/app/loader.js'
import {ExtensionInstance} from '../../models/extensions/extension-instance.js'
import {ExtensionsArraySchema, UnifiedSchema} from '../../models/extensions/schemas.js'
import {configWithoutFirstClassFields} from '../../models/extensions/specification.js'
import {DeveloperPlatformClient} from '../../utilities/developer-platform-client.js'
import {themeExtensionConfig} from '../deploy/theme-extension-config.js'
import {AbortError} from '@shopify/cli-kit/node/error'
Expand Down Expand Up @@ -111,8 +110,7 @@ export async function reloadExtensionConfig({extension}: UpdateExtensionConfigOp
)
}

const mergedConfig = {...configuration, ...extensionConfig}
configObject = configWithoutFirstClassFields(mergedConfig)
configObject = {...configuration, ...extensionConfig}
}

const newConfig = await parseConfigurationObjectAgainstSpecification(
Expand Down

0 comments on commit 728f5b7

Please sign in to comment.