Skip to content

Commit

Permalink
Merge branch 'widget' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
treoden committed Aug 21, 2024
2 parents 796fc8d + aae35a6 commit db9a569
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ module.exports = async (request, response, delegate, next) => {
}
});
} else {
let widgetInstances = await loadWidgetInstances(request);
let widgetInstances;
// Check if we are in the test mode
if (process.env.NODE_ENV === 'test') {
widgetInstances = [];
} else {
widgetInstances = await loadWidgetInstances(request);
}
widgetInstances = widgetInstances.map((widget) => {
const newWidget = {
sortOrder: widget.sortOrder,
Expand Down

0 comments on commit db9a569

Please sign in to comment.