Skip to content

Commit

Permalink
fix(ssr): make query optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 22, 2023
1 parent b410f86 commit d78a6c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- LSP: `viewHir` command [[#14](https://github.com/mrcjkb/rustaceanvim/issues/14)].

### Fixed

- SSR: Make query optional.

## [3.10.5] - 2023-12-22

### Fixed
Expand Down
6 changes: 1 addition & 5 deletions lua/rustaceanvim/commands/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ local command_tbl = {
require('rustaceanvim.commands.parent_module')()
end,
ssr = function(args)
if #args == 0 then
vim.notify('ssr: called without a query', vim.log.levels.ERROR)
return
end
local query = table.concat(args, ' ')
local query = args and #args > 0 and table.concat(args, ' ') or nil
require('rustaceanvim.commands.ssr')(query)
end,
reloadWorkspace = function()
Expand Down

0 comments on commit d78a6c7

Please sign in to comment.