Wrap _find_project_index inside ya.sync

This commit is contained in:
Sami Kankaristo
2025-06-19 22:32:26 +03:00
parent fb00b35266
commit 1630a17a9e

View File

@@ -930,7 +930,7 @@ local _merge_event = ya.sync(function(state)
end) end)
end) end)
local _find_project_index = function(list, search_term) local _find_project_index = ya.sync(function(state, list, search_term)
if not search_term then if not search_term then
return nil return nil
end end
@@ -943,7 +943,7 @@ local _find_project_index = function(list, search_term)
end end
return nil return nil
end end)
return { return {
setup = function(_, opts) setup = function(_, opts)