Skip to content

Commit

Permalink
fix: unapge admin front types
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen committed Feb 9, 2024
1 parent c8b28fe commit 6bffbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/admin/src/routes/(online)/(app)/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Paged } from "$server/defs/Paged";
import { qss } from "$share/qs";
import { redirect } from "@sveltejs/kit";

const unpage = <T extends { deleted_at: string | null }>(page: Paged<T>): [all: T[], current: T[], deleted: T[]] => {
const unpage = <T extends { deleted_at: string | null | undefined }>(page: Paged<T>): [all: T[], current: T[], deleted: T[]] => {
const all = page.items;
const current: T[] = [];
const deleted: T[] = [];
Expand Down

0 comments on commit 6bffbbc

Please sign in to comment.