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"
|
className="sv_next_btn"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
setMode('in_progress');
|
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('/');
|
const urlArr = task.url.split('/');
|
||||||
setTaskId(urlArr[urlArr.length - 1]);
|
setTaskId(urlArr[urlArr.length - 1]);
|
||||||
const response = await subscribeTask(task.url);
|
const response = await subscribeTask(task.url);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user