mirror of
https://github.com/discourse/discourse.git
synced 2025-03-14 10:33:43 +00:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user