Skip to content

Commit 5982182

Browse files
committed
fix: dispatch without argument
1 parent c5ceeb0 commit 5982182

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: src/components/VueCommand.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ const autoHistoryPosition = () => {
310310
311311
// Parses the query, looks for a user given command and appends the resulting
312312
// component to the history
313-
const dispatch = async query => {
313+
const dispatch = async () => {
314+
const query = local.query
315+
314316
// An empty query is an empty string
315317
if (isEmpty(query)) {
316318
appendToHistory(createQuery())

Diff for: src/components/VueCommandQuery.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const showDelayedHelp = () => {
166166
// Deactivates this query and dispatches it to execute the command
167167
const submit = () => {
168168
isOutdated.value = true
169-
dispatch(query.value)
169+
dispatch()
170170
}
171171
172172
// Apply given cursor position to actual cursor position

0 commit comments

Comments
 (0)