FIX: Update for core changes

This commit is contained in:
David Taylor 2020-06-19 21:24:06 +01:00
parent 314873f190
commit 53120661ad
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ export default {
@discourseComputed("model.content.@each") @discourseComputed("model.content.@each")
userCards(allUsers) { userCards(allUsers) {
if (!allUsers) return [];
const toLoad = []; const toLoad = [];
const userCardInfos = allUsers.map(u => { const userCardInfos = allUsers.map(u => {
if (this.cachedUserCardInfo[u.id]) { if (this.cachedUserCardInfo[u.id]) {

View File

@ -37,7 +37,7 @@
{{number (get userCard.directoryItem stat.name)}} {{number (get userCard.directoryItem stat.name)}}
</span> </span>
<span class="label"> <span class="label">
{{directory-toggle field=stat.name order=order asc=asc icon=stat.icon tagName="span"}} {{table-header-toggle field=stat.name order=order asc=asc icon=stat.icon tagName="span"}}
</span> </span>
</span> </span>
{{/each}} {{/each}}