mirror of
https://github.com/docmost/docmost.git
synced 2026-08-31 02:46:27 +08:00
fix(base): mint kanban choice ids as nanoid
This commit is contained in:
@@ -51,8 +51,8 @@
|
|||||||
"lowlight": "3.3.0",
|
"lowlight": "3.3.0",
|
||||||
"mantine-form-zod-resolver": "1.3.0",
|
"mantine-form-zod-resolver": "1.3.0",
|
||||||
"mermaid": "11.15.0",
|
"mermaid": "11.15.0",
|
||||||
"nanoid": "^3.3.8",
|
|
||||||
"mitt": "3.0.1",
|
"mitt": "3.0.1",
|
||||||
|
"nanoid": "^3.3.8",
|
||||||
"posthog-js": "1.372.2",
|
"posthog-js": "1.372.2",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-clear-modal": "^2.0.18",
|
"react-clear-modal": "^2.0.18",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useCallback } from "react";
|
import { useCallback } from "react";
|
||||||
import { Stack, Text, Select, Button } from "@mantine/core";
|
import { Stack, Text, Select, Button } from "@mantine/core";
|
||||||
import { v7 as uuid7 } from "uuid";
|
import { generateBaseChoiceId } from "@/ee/base/utils/generate-base-id";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { IBase, IBaseView } from "@/ee/base/types/base.types";
|
import { IBase, IBaseView } from "@/ee/base/types/base.types";
|
||||||
import { useUpdateViewMutation } from "@/ee/base/queries/base-view-query";
|
import { useUpdateViewMutation } from "@/ee/base/queries/base-view-query";
|
||||||
@@ -36,9 +36,9 @@ export function KanbanEmptyState({ base, view, pageId, editable }: KanbanEmptySt
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handleCreateStatus = useCallback(() => {
|
const handleCreateStatus = useCallback(() => {
|
||||||
const todoId = uuid7();
|
const todoId = generateBaseChoiceId();
|
||||||
const inProgressId = uuid7();
|
const inProgressId = generateBaseChoiceId();
|
||||||
const completeId = uuid7();
|
const completeId = generateBaseChoiceId();
|
||||||
createProperty.mutate(
|
createProperty.mutate(
|
||||||
{
|
{
|
||||||
pageId,
|
pageId,
|
||||||
|
|||||||
+1
-1
Submodule apps/server/src/ee updated: 3911d559f8...b3a56017a2
Reference in New Issue
Block a user