Skip to content

Commit

Permalink
Fix: Handle Mint record type views (#1)
Browse files Browse the repository at this point in the history
* Updated the updateDatastream method to handle the new view only form type

* Fixed attachment processing to use the record variable as that should never be null
  • Loading branch information
andrewbrazzatti authored Nov 21, 2024
1 parent 5561bf6 commit 0f31dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typescript/api/services/CloudDatastreamService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ export module Services {
return FormsService.getFormByName(record.metaMetadata.form, true)
.flatMap(form => {
const reqs = [];
record.metaMetadata.attachmentFields = form.attachmentFields;
_.each(form.attachmentFields, async (attField) => {
record.metaMetadata.attachmentFields = form != undefined ? form.attachmentFields : [];
_.each(record.metaMetadata.attachmentFields, async (attField) => {
const oldAttachments = record.metadata[attField];
const newAttachments = newMetadata[attField];
const removeIds = [];
Expand Down

0 comments on commit 0f31dc0

Please sign in to comment.