Skip to content

Commit

Permalink
fix(react): fix tag autocomplete after creating a new tag (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-lyons authored May 20, 2021
1 parent d30bf67 commit 158d65b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datahub-web-react/src/app/shared/tags/AddTagModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const TagSelect = styled(Select)`
const CREATE_TAG_VALUE = '____reserved____.createTagValue';

export default function AddTagModal({ updateTags, globalTags, visible, onClose }: AddTagModalProps) {
const [getAutoCompleteResults, { loading, data: suggestionsData }] = useGetAutoCompleteResultsLazyQuery();
const [getAutoCompleteResults, { loading, data: suggestionsData }] = useGetAutoCompleteResultsLazyQuery({
fetchPolicy: 'no-cache',
});
const [inputValue, setInputValue] = useState('');
const [selectedTagValue, setSelectedTagValue] = useState('');
const [showCreateModal, setShowCreateModal] = useState(false);
Expand Down

0 comments on commit 158d65b

Please sign in to comment.