Skip to content

Commit

Permalink
fix: TAR-224 Sources is no longer an array so we don't need to access…
Browse files Browse the repository at this point in the history
… it as an array
  • Loading branch information
jonnyAmplience committed Apr 4, 2024
1 parent 692dfd8 commit 4f2f284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/extension/src/AIPromptDialog/AIPromptDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ const AIPromptDialogContent: React.SFC<any> = (props: AIPromptDialogProps) => {
const [useKeywords, setUseKeywords] = useState<boolean>(true);

useEffect(() => {
getKeywords(sdk as SDK).then((data) => {
if (data && data[0]) {
getKeywords(sdk as SDK).then((keywords) => {
if (keywords) {
setKeywords(
data[0].split(",").map((keyword: string) => keyword.trim())
keywords.split(",").map((keyword: string) => keyword.trim())
);
}
});
Expand Down

0 comments on commit 4f2f284

Please sign in to comment.