@blocklet/pages-kit-block-studio 0.6.46 → 0.6.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,8 +175,8 @@ async function performPackaging({ exportDir, componentIds, workingDir }) {
175
175
  Object.keys(metadata.properties).forEach((key) => {
176
176
  const property = metadata.properties[key].data;
177
177
  if (property.type === 'url') {
178
- Object.keys(property.locales).forEach((locale) => {
179
- if (property.locales[locale].defaultValue?.mediaKitUrl?.startsWith('mediakit://')) {
178
+ Object.keys(property?.locales || {}).forEach((locale) => {
179
+ if (property.locales[locale]?.defaultValue?.mediaKitUrl?.startsWith('mediakit://')) {
180
180
  const downloadPromise = (async () => {
181
181
  try {
182
182
  const fileName = basename(property.locales[locale].defaultValue.mediaKitUrl);