mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08:00
FIX: prevents exception on required login sites with chat (#20525)
On require login sites, the `site` is not setup and as a result `hashtag_configurations` was blank and causing an error when attempting to access `["chat-composer"]` on it.
This commit is contained in:
parent
5d6e8fdff0
commit
0dc9c6c96d
@ -16,7 +16,8 @@ export default {
|
|||||||
markdownItRules:
|
markdownItRules:
|
||||||
site.markdown_additional_options?.chat
|
site.markdown_additional_options?.chat
|
||||||
?.limited_pretty_text_markdown_rules,
|
?.limited_pretty_text_markdown_rules,
|
||||||
hashtagTypesInPriorityOrder: site.hashtag_configurations["chat-composer"],
|
hashtagTypesInPriorityOrder:
|
||||||
|
site.hashtag_configurations?.["chat-composer"],
|
||||||
hashtagIcons: site.hashtag_icons,
|
hashtagIcons: site.hashtag_icons,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user