FIX: Do not render if there is no user
This commit is contained in:
parent
1a60f5670f
commit
dea80b5ed8
|
@ -4,7 +4,7 @@ import { emojiUrlFor } from "discourse/lib/text";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
shouldRender(args, component) {
|
shouldRender(args, component) {
|
||||||
return component.siteSettings.user_notes_enabled;
|
return component.siteSettings.user_notes_enabled && args.user;
|
||||||
},
|
},
|
||||||
|
|
||||||
setupComponent(args, component) {
|
setupComponent(args, component) {
|
||||||
|
|
Loading…
Reference in New Issue