Skip to content

Commit 652c95b

Browse files
authored
Merge pull request #47 from pieces-app/fix-updating
fix update issue
2 parents fe19f5b + c7daeeb commit 652c95b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/pieces/assets/ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ local function update_preview()
9898
end
9999

100100
function M.update()
101-
if results_popup and preview_popup then
101+
if type(results_popup) == "number" and type(preview_popup) == "number" then
102102
update_list()
103103
update_preview()
104104
end

lua/pieces/copilot/conversations_ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ local function update_list()
4444

4545
end
4646
function M.update()
47-
if results_popup then
47+
if results_popup and type(results_popup) == "number" then
4848
update_list()
4949
end
5050
end

0 commit comments

Comments
 (0)