Fix breaches page
This commit is contained in:
Родитель
168a1723eb
Коммит
6d10b7edcc
|
@ -78,8 +78,10 @@ function getLocalizedBreachValues(locales, breach) {
|
||||||
return breach;
|
return breach;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBreachArray(breaches, args) {
|
function getBreachArray(args) {
|
||||||
const locales = args.data.root.req.supportedLocales;
|
const locales = args.data.root.req.supportedLocales;
|
||||||
|
|
||||||
|
let breaches = args.data.root.req.app.locals.breaches;
|
||||||
breaches = JSON.parse(JSON.stringify(breaches));
|
breaches = JSON.parse(JSON.stringify(breaches));
|
||||||
// should we consider filtering the breaches when the app loads
|
// should we consider filtering the breaches when the app loads
|
||||||
// since we aren't ever showing them now anyway?
|
// since we aren't ever showing them now anyway?
|
||||||
|
|
|
@ -23,4 +23,4 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="breach-array-json" hidden=true data-breach-array="{{ getBreachArray req.app.locals.breaches }}"></div>
|
<div id="breach-array-json" hidden=true data-breach-array="{{ getBreachArray }}"></div>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче