Skip to content

Commit

Permalink
fix: add wait to code sample (#10544)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
justinnoel and sarah11918 authored Dec 27, 2024
1 parent 11b0d58 commit 8cd5ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ import { actions } from 'astro:actions';
const searchQuery = Astro.url.searchParams.get('search');
if (searchQuery) {
const { data, error } = Astro.callAction(actions.findProduct, { query: searchQuery });
const { data, error } = await Astro.callAction(actions.findProduct, { query: searchQuery });
// handle result
}
---
Expand Down

0 comments on commit 8cd5ca7

Please sign in to comment.