🐛 fix: fix addAutocompleteToArea error [#198]

pull/240/head
canisminor1990 2023-07-01 21:13:04 +08:00
parent c109118501
commit 8409d3c1ea
2 changed files with 249 additions and 245 deletions

File diff suppressed because one or more lines are too long

View File

@ -78,6 +78,7 @@ const TagList = memo<TagListProps>(({ tags, setTags, type, setValue }) => {
);
useEffect(() => {
try {
if (!addAutocompleteToArea || bind) return;
let retryTimes = 0;
const bindInterval = setInterval(() => {
@ -93,6 +94,9 @@ const TagList = memo<TagListProps>(({ tags, setTags, type, setValue }) => {
}
retryTimes++;
}, 1000);
} catch (error) {
console.error(error);
}
}, [bind]);
return (