MCPcopy Create free account
hub / github.com/code100x/daily-code / handleAddTracks

Function handleAddTracks

apps/web/components/admin/AdminSearch.tsx:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}) => {
14 const [isSubmitting, setIsSubmitting] = useState(false);
15 async function handleAddTracks() {
16 setIsSubmitting(true);
17 for (const track of TracksNotinSearch) {
18 await insertData(track.id);
19 }
20 setIsSubmitting(false);
21 }
22 async function handlecreateCollection() {
23 toast({
24 title: "Creating Collection",

Callers

nothing calls this directly

Calls 1

insertDataFunction · 0.90

Tested by

no test coverage detected