Send to screenshot service only the domains that are marked
This commit is contained in:
parent
520a26923e
commit
adf82b3dd6
@ -157,7 +157,12 @@ export default function ScreenshotGenerator({
|
||||
className="sv_next_btn"
|
||||
onClick={async () => {
|
||||
setMode('in_progress');
|
||||
const task = await createTask(visited_url, Object.keys(clusters));
|
||||
const task = await createTask(
|
||||
visited_url,
|
||||
Object.values(clusters)
|
||||
.filter((cluster) => cluster.hasMarks())
|
||||
.map((cluster) => cluster.id)
|
||||
);
|
||||
const urlArr = task.url.split('/');
|
||||
setTaskId(urlArr[urlArr.length - 1]);
|
||||
const response = await subscribeTask(task.url);
|
||||
|
Loading…
Reference in New Issue
Block a user