Skip to content

Commit

Permalink
please work
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-lao committed Nov 15, 2024
1 parent a40b9d5 commit 1ad94a1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions frontend/degree-plan/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,7 @@ export default function Home() {
value={{
fetcher: (resource, init) =>
{
<<<<<<< HEAD
return fetch(resource, init).then((res) => res.json())
=======
console.log(resource)
if (typeof resource === "string") {
return fetch(resource, init).then((res) => res.json())
}
if (Array.isArray(resource) && resource.every(k => typeof k === "string")) {
const last = resource.at(-1)
if(typeof last === "string") {
return fetch(last, init).then((res) => res.json())
}
}
throw new Error("Undefined behavior due to invalid key")
>>>>>>> ec732db7 (fixed some parsing issues)
},
// fetch(resource, init).then((res) => res.json()),
provider: () => new Map(),
Expand Down

0 comments on commit 1ad94a1

Please sign in to comment.