mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
starlight_help: Do not pass global variable as argument.
This commit is contained in:
committed by
Tim Abbott
parent
fc176fedd4
commit
9812bf187f
@@ -331,10 +331,7 @@ const getSettingsMarkdown = (
|
||||
</ol>
|
||||
`;
|
||||
|
||||
const getSettingsHTML = (
|
||||
setting_key: string,
|
||||
SHOW_RELATIVE_LINKS: boolean,
|
||||
): string => {
|
||||
const getSettingsHTML = (setting_key: string): string => {
|
||||
const {setting_type, setting_name, setting_link} =
|
||||
setting_link_mapping[setting_key]!;
|
||||
|
||||
@@ -404,7 +401,7 @@ if (
|
||||
|
||||
let resultHTML: string | undefined;
|
||||
if (navigation_link_type === "settings") {
|
||||
resultHTML = getSettingsHTML(target.split("/")[1], SHOW_RELATIVE_LINKS);
|
||||
resultHTML = getSettingsHTML(target.split("/")[1]);
|
||||
} else {
|
||||
const link_type = target.split("/")[1];
|
||||
const key = target.split("/")[2];
|
||||
|
Reference in New Issue
Block a user