A Neovim plugin enabling you to solve LeetCode problems.
fix(spinner): check if `notif` is table (#153)
1 file changed, +1 -1
+1-1lua/leetcode/logger/spinner/init.lua
| @@ -73,7 +73,7 @@ function spinner:set(msg, lvl, opts) | ||
| 73 | 73 | end |
| 74 | 74 | lvl = lvl or vim.log.levels.INFO |
| 75 | 75 | |
| 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 | |
| 77 | 77 | |
| 78 | 78 | opts = vim.tbl_deep_extend("force", { |
| 79 | 79 | hide_from_history = true, |