fix(quest-links): handle missing quest names
This commit is contained in:
@@ -71,6 +71,7 @@ end
|
|||||||
---@return string
|
---@return string
|
||||||
function QuestieLink:GetQuestLinkString(questLevel, questName, questId)
|
function QuestieLink:GetQuestLinkString(questLevel, questName, questId)
|
||||||
local questLink = GetQuestLink and GetQuestLink(questId)
|
local questLink = GetQuestLink and GetQuestLink(questId)
|
||||||
|
questName = questName or (questLink and string.match(questLink, "%[(.-)%]")) or "Quest"
|
||||||
local questString = "["..questName.." ("..tostring(questId)..")]"
|
local questString = "["..questName.." ("..tostring(questId)..")]"
|
||||||
|
|
||||||
if Questie.db.profile.trackerShowQuestLevel then
|
if Questie.db.profile.trackerShowQuestLevel then
|
||||||
|
|||||||
Reference in New Issue
Block a user