Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit db7e1cd

Browse files
committed
fix(spinner): check if notif is table (#153)
1 parent 221ee9e commit db7e1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/leetcode/logger/spinner/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function spinner:set(msg, lvl, opts)
7373
end
7474
lvl = lvl or vim.log.levels.INFO
7575

76-
local id = self.noti and (self.noti.id or self.noti)
76+
local id = type(self.noti) == "table" and self.noti.id or self.noti
7777

7878
opts = vim.tbl_deep_extend("force", {
7979
hide_from_history = true,

0 commit comments

Comments
 (0)