diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.ts index 08d206f2..73eac5d4 100644 --- a/ui/src/common/interface.ts +++ b/ui/src/common/interface.ts @@ -195,7 +195,7 @@ export interface PostAnswerReq { } export interface PageUser { - id; + id?; displayName; userName?; avatar_url?; diff --git a/ui/src/components/Comment/components/Form/index.tsx b/ui/src/components/Comment/components/Form/index.tsx index a67f8aca..4971c4ef 100644 --- a/ui/src/components/Comment/components/Form/index.tsx +++ b/ui/src/components/Comment/components/Form/index.tsx @@ -29,7 +29,9 @@ const Form = ({ const handleChange = (e) => { setValue(e.target.value); }; - + const handleSelected = (val) => { + setValue(val); + }; return (
- +