@overmap-ai/core 1.0.35-add-image-to-forms.18 → 1.0.35-add-image-to-forms.19

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.
@@ -5330,8 +5330,8 @@ const separateImageFromFields = (payload) => {
5330
5330
  const newSectionFields = [];
5331
5331
  for (const field of sectionFields) {
5332
5332
  if (field.image) {
5333
- if (!(field.image instanceof File)) {
5334
- throw new Error(`Expected image to be a File, got ${typeof field.image} instead.`);
5333
+ if (field.image instanceof Promise) {
5334
+ throw new Error("Expected image to be a File, got a Promise instead.");
5335
5335
  }
5336
5336
  images[field.identifier] = field.image;
5337
5337
  delete field.image;