Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Inline variable
  • Loading branch information
Regalijan authored and Regalijan committed Oct 23, 2023
1 parent 58f83d2 commit 04c578a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/routes/me.tsx
Expand Up @@ -45,16 +45,14 @@ export async function loader({ context }: { context: RequestContext }) {

const settledPromises = await Promise.allSettled(d1Promises);

const data = {
return {
items: settledPromises.filter((p) => {
if (p.status === "fulfilled") return p.value.results;

return null;
}) as any as ({ [k: string]: any }[] | null)[],
permissions: currentUser.permissions as number,
};

return data;
}

export default function () {
Expand Down

0 comments on commit 04c578a

Please sign in to comment.