FIX: Make SmallUserList change backwards compatible (#31790)

We made some changes to the SmallUserList widget in #31549. This accidentally broke at least one plugin (discourse-topic-voting) which uses it.

This fixes that by defaulting isVisible to true (old behaviour) when the argument is missing.
This commit is contained in:
Ted Johansson
2025-03-13 16:27:37 +08:00
committed by GitHub
parent c30ddf8898
commit 599107f89f

View File

@ -43,7 +43,7 @@ export default class SmallUserList extends Component {
}
get shouldShow() {
return this.users.length && this.args.isVisible;
return this.users.length && (this.args.isVisible ?? true);
}
<template>