Skip to content

Commit

Permalink
Merge pull request #86 from bittorrent/v3.2.0
Browse files Browse the repository at this point in the history
fix: cid list
  • Loading branch information
lulu-tro authored Dec 31, 2024
2 parents 67f460d + 6ef09a3 commit 28da503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Modals/FileBlackListModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export default function FileBlackListModal({ color, closeModal, showModal }) {
// setValidateMsg(t('validate_file_blacklist_cid1'))
// return
// }
let listArr = listVal.split('\n');
let listArr1 = listVal.split('\n');
let listArr = listArr1.filter(v=>v!== '')
let validateCids = true;
for (var v in listArr) {
if (listArr[v] && !validateCid(listArr[v])) {
Expand All @@ -99,6 +100,7 @@ export default function FileBlackListModal({ color, closeModal, showModal }) {
return;
}


try {
await addFileBlackList(listArr, true);
setLoading(false);
Expand Down

0 comments on commit 28da503

Please sign in to comment.