Skip to content

Commit

Permalink
fix: swallow errors on dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Jun 23, 2024
1 parent c954899 commit e5e9215
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/volto/src/components/manage/Blocks/Teaser/Data.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ const TeaserData = (props) => {
null,
`${block}-teaser`,
),
).then((resp) => {
if (resp) {
let blockData = dataTransformer(resp, data);
onChangeBlock(block, blockData);
}
});
)
.then((resp) => {
if (resp) {
let blockData = dataTransformer(resp, data);
onChangeBlock(block, blockData);
}
})
.catch((e) => {});
}
};

Expand Down

0 comments on commit e5e9215

Please sign in to comment.