Spaces:
Paused
Paused
Commit
·
f854364
1
Parent(s):
949e1b1
generate the UUID on client side
Browse files
src/app/page.tsx
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-
|
|
|
|
|
2 |
import { v4 as uuidv4 } from "uuid"
|
3 |
|
4 |
export default function Index() {
|
|
|
1 |
+
"use client"
|
2 |
+
|
3 |
+
import { redirect } from "next/navigation"
|
4 |
import { v4 as uuidv4 } from "uuid"
|
5 |
|
6 |
export default function Index() {
|
src/components/business/refresh.tsx
CHANGED
@@ -13,7 +13,13 @@ export function RefreshStudio() {
|
|
13 |
const slug = `${pathname.split("/").pop()}`
|
14 |
setInterval(() => {
|
15 |
console.log("refresh things!", slug)
|
16 |
-
startTransition(() =>
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}, 2000)
|
18 |
}, [])
|
19 |
|
|
|
13 |
const slug = `${pathname.split("/").pop()}`
|
14 |
setInterval(() => {
|
15 |
console.log("refresh things!", slug)
|
16 |
+
startTransition(() => {
|
17 |
+
try {
|
18 |
+
refreshStudio(slug)
|
19 |
+
} catch (err) {
|
20 |
+
// ignoring
|
21 |
+
}
|
22 |
+
})
|
23 |
}, 2000)
|
24 |
}, [])
|
25 |
|
src/components/business/tasks/video-tasks-queue.tsx
CHANGED
@@ -64,7 +64,7 @@ export function VideoTasksQueue({
|
|
64 |
})
|
65 |
|
66 |
return (
|
67 |
-
<div className="rounded-lg border
|
68 |
<Table>
|
69 |
<TableHeader>
|
70 |
{table.getHeaderGroups().map((headerGroup) => (
|
|
|
64 |
})
|
65 |
|
66 |
return (
|
67 |
+
<div className="rounded-lg border">
|
68 |
<Table>
|
69 |
<TableHeader>
|
70 |
{table.getHeaderGroups().map((headerGroup) => (
|