@ministryofjustice/hmpps-digital-prison-reporting-frontend 3.28.2 → 3.28.3
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.
|
@@ -115,7 +115,7 @@ exports.default = {
|
|
|
115
115
|
if (report && report.isExpired) {
|
|
116
116
|
await services.asyncReportsStore.setToExpired(report.executionId, userId);
|
|
117
117
|
}
|
|
118
|
-
return report.isExpired;
|
|
118
|
+
return report ? report.isExpired : false;
|
|
119
119
|
},
|
|
120
120
|
renderList: async ({ services, res, maxRows, }) => {
|
|
121
121
|
var _a;
|
|
@@ -73,7 +73,7 @@ exports.default = {
|
|
|
73
73
|
if (report && report.isExpired) {
|
|
74
74
|
await services.recentlyViewedStoreService.setToExpired(report.executionId, userId);
|
|
75
75
|
}
|
|
76
|
-
return report.isExpired;
|
|
76
|
+
return report ? report.isExpired : false;
|
|
77
77
|
},
|
|
78
78
|
renderRecentlyViewedList: async ({ services, res, maxRows, }) => {
|
|
79
79
|
var _a;
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
64
64
|
if (report && report.isExpired) {
|
|
65
65
|
await services.recentlyViewedStoreService.setToExpired(report.executionId, userId)
|
|
66
66
|
}
|
|
67
|
-
return report.isExpired
|
|
67
|
+
return report ? report.isExpired : false
|
|
68
68
|
},
|
|
69
69
|
|
|
70
70
|
renderRecentlyViewedList: async ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
|
|
3
3
|
"description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
|
|
4
|
-
"version": "3.28.
|
|
4
|
+
"version": "3.28.3",
|
|
5
5
|
"main": "dpr/assets/js/all.mjs",
|
|
6
6
|
"sass": "dpr/all.scss",
|
|
7
7
|
"engines": {
|
package/package.zip
CHANGED
|
Binary file
|