mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
Fix state mutation
This commit is contained in:
@@ -34,8 +34,7 @@ const AddKeywords = ({ closeModal, domain, keywords }: AddKeywordsProps) => {
|
||||
setError(`Keywords ${keywordExist.join(',')} already Exist`);
|
||||
setTimeout(() => { setError(''); }, 3000);
|
||||
} else {
|
||||
newKeywordsData.keywords = keywordsArray.join('\n');
|
||||
addMutate(newKeywordsData);
|
||||
addMutate({...newKeywordsData, keywords: keywordsArray.join('\n')});
|
||||
}
|
||||
} else {
|
||||
setError('Please Insert a Keyword');
|
||||
|
||||
Reference in New Issue
Block a user