Skip to content

Commit

Permalink
don't get selected text when we don't need to
Browse files Browse the repository at this point in the history
  • Loading branch information
vineus committed Dec 7, 2023
1 parent 77e9452 commit d663e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function AskDustCommand(props: LaunchProps<{ arguments: { search:
const question = props.arguments.search;
const agent = props.arguments.agent || DUST_AGENT;

const selectedText = useGetSelectedText();
const selectedText = question ? undefined : useGetSelectedText();
return question ? (
<AskDustQuestion question={question} agent={agent} />
) : (
Expand Down

0 comments on commit d663e20

Please # to comment.