mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 09:06:54 +00:00
fix: resolve lint error in upload service test
This commit is contained in:
@@ -240,7 +240,7 @@ describe('UploadService', () => {
|
||||
sizeByte: 1000,
|
||||
},
|
||||
})
|
||||
const fileV1 = await prisma.asset.create({
|
||||
await prisma.asset.create({
|
||||
data: {
|
||||
name: 'v1.txt',
|
||||
type: AssetType.file,
|
||||
|
||||
@@ -143,7 +143,10 @@ export default function ShareManager({
|
||||
() => foldersData?.pages.flatMap((page) => page.data ?? []) ?? [],
|
||||
[foldersData],
|
||||
)
|
||||
const files = useMemo(() => filesData?.pages.flatMap((page) => page.data ?? []) ?? [], [filesData])
|
||||
const files = useMemo(
|
||||
() => filesData?.pages.flatMap((page) => page.data ?? []) ?? [],
|
||||
[filesData],
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
if (shareLink) {
|
||||
|
||||
Reference in New Issue
Block a user