MCPcopy Create free account
hub / github.com/LumePart/Explo / handleStep1

Function handleStep1

src/web/frontend/src/components/Wizard.jsx:676–694  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

674 .map(([k]) => k);
675
676 async function handleStep1() {
677 setSaving(true);
678 try {
679 const playlists = Object.entries(fields.checked)
680 .filter(([, v]) => v)
681 .map(([k]) => k);
682 await wizardStep1(fields.user.trim(), playlists, fields.discoveryMode);
683 if (playlists.length > 0) {
684 prefetchPlaylists(fields.user.trim(), playlists, {
685 source: "wizard",
686 }).catch(() => {});
687 }
688 setStep(2);
689 } catch (e) {
690 alert("Error saving: " + e.message);
691 } finally {
692 setSaving(false);
693 }
694 }
695
696 async function handleStep2() {
697 setSaving(true);

Callers

nothing calls this directly

Calls 2

wizardStep1Function · 0.90
prefetchPlaylistsFunction · 0.90

Tested by

no test coverage detected