@ministryofjustice/hmpps-digital-prison-reporting-frontend 6.3.2 → 6.3.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.
- package/all.bundle.js +1 -1
- package/all.bundle.js.map +1 -1
- package/all.js +1 -1
- package/all.js.map +1 -1
- package/package.json +1 -1
package/all.bundle.js
CHANGED
|
@@ -2133,6 +2133,7 @@ class DprMyReports extends PollingClientClass {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
initialise() {
|
|
2135
2135
|
const element = this.getElement();
|
|
2136
|
+
this.csrfToken = DprHtmlClient.getCsrfToken(element);
|
|
2136
2137
|
this.maxRows = element.dataset['maxRows'];
|
|
2137
2138
|
this.listType = element.dataset['listType'] ?? `my-reports-${ListType.REQUESTED}`;
|
|
2138
2139
|
this.initRemoveAction();
|
|
@@ -2140,7 +2141,6 @@ class DprMyReports extends PollingClientClass {
|
|
|
2140
2141
|
if (element.dataset['listType'] !== `my-reports-${ListType.REQUESTED}`) {
|
|
2141
2142
|
return;
|
|
2142
2143
|
}
|
|
2143
|
-
this.csrfToken = DprHtmlClient.getCsrfToken(element);
|
|
2144
2144
|
this.rows = element.querySelectorAll('[data-row-id]');
|
|
2145
2145
|
if (this.rows.length && !this.allTerminal()) {
|
|
2146
2146
|
this.startPolling(() => this.pollAllReports(), () => this.allTerminal());
|