mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
fix: project overview description (#2637)
This commit is contained in:
committed by
GitHub
parent
67205a721d
commit
2462e446b2
@@ -1,4 +1,6 @@
|
||||
"use client";
|
||||
import { useState } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useUser } from "@/hooks/store";
|
||||
import { TProject } from "@/plane-web/types";
|
||||
import { Actions } from "./actions";
|
||||
@@ -12,7 +14,7 @@ type TProps = {
|
||||
toggleLinkModalOpen: (value: boolean) => void;
|
||||
disabled?: boolean;
|
||||
};
|
||||
export const DescriptionBox = (props: TProps) => {
|
||||
export const DescriptionBox = observer((props: TProps) => {
|
||||
const { workspaceSlug, project, handleProjectUpdate, toggleLinkModalOpen, disabled = false } = props;
|
||||
const [isSubmitting, setIsSubmitting] = useState<"submitting" | "submitted" | "saved">("saved");
|
||||
|
||||
@@ -36,4 +38,4 @@ export const DescriptionBox = (props: TProps) => {
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
||||
@@ -96,7 +96,7 @@ export const ProjectDescriptionInput: FC<ProjectDescriptionInputProps> = observe
|
||||
<RichTextEditor
|
||||
id={project.id}
|
||||
initialValue={initialValue ?? ""}
|
||||
value={swrProjectDescription ?? null}
|
||||
value={project?.description_html ?? null}
|
||||
workspaceSlug={workspaceSlug}
|
||||
workspaceId={workspaceId}
|
||||
projectId={project.id}
|
||||
|
||||
Reference in New Issue
Block a user