Skip to content

Commit

Permalink
Only search when there's content
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Feb 24, 2024
1 parent 3067bd6 commit 2d7b000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/components/Home.luau
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local function Home(props: Props)
end, { props.extensions, props.err })

local onSearch = useCallback(function(rbx: TextBox, enterPressed: boolean)
if enterPressed then
if enterPressed and rbx.Text ~= "" then
props.onSearch(rbx.Text)
end
end, {})
Expand Down

0 comments on commit 2d7b000

Please sign in to comment.