🐛 fix: fix addAutocompleteToArea error [#198]
parent
c109118501
commit
8409d3c1ea
File diff suppressed because one or more lines are too long
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue