diff --git a/frontend/src/ts/commandline/index.ts b/frontend/src/ts/commandline/index.ts index 344b4d8a4..eff368fea 100644 --- a/frontend/src/ts/commandline/index.ts +++ b/frontend/src/ts/commandline/index.ts @@ -172,6 +172,10 @@ function updateSuggested(): void { export let show = (): void => { themeChosen = false; + + //take last element of array + const list = CommandlineLists.current; + console.log(list); if (!$(".page.pageLoading").hasClass("hidden")) return; Focus.set(false); $("#commandLine").removeClass("hidden"); @@ -715,7 +719,7 @@ $(document).on("click", "#testModesNotice .textButton", (event) => { if (attr === undefined) return; const commands = CommandlineLists.getList(attr); if (commands !== undefined) { - if ($(event.currentTarget).attr("commands") === "commandsTags") { + if ($(event.currentTarget).attr("commands") === "tags") { updateTagsCommands(); } CommandlineLists.pushCurrent(commands);