This commit is contained in:
lesley 2020-04-13 12:41:26 -05:00
Родитель 168a1723eb
Коммит 6d10b7edcc
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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>