Fix issue where getText was returning nil

This commit is contained in:
2024-03-14 23:19:28 +01:00
parent 3cb28230dc
commit d1d3a41314

View File

@@ -38,7 +38,11 @@ function GetNameFromFrame(frame)
return "", "Frame.Name is nil"
end
---@diagnostic disable-next-line: undefined-field
return frame.Name:GetText(), nil
local name = frame.Name:GetText()
if name == nil then
return "", "Frame.Name.GetText is nil"
end
return name, nil
end
---@param name string