From c360ec8414a563338839b239c0f8062bfdcdc4e9 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 17 Jun 2020 14:51:33 +0800
Subject: refactor(front): Fix #104 .

---
 Timeline/ClientApp/src/app/timeline/TimelinePostEdit.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'Timeline/ClientApp/src/app/timeline/TimelinePostEdit.tsx')

diff --git a/Timeline/ClientApp/src/app/timeline/TimelinePostEdit.tsx b/Timeline/ClientApp/src/app/timeline/TimelinePostEdit.tsx
index d1c09036..894d6ad4 100644
--- a/Timeline/ClientApp/src/app/timeline/TimelinePostEdit.tsx
+++ b/Timeline/ClientApp/src/app/timeline/TimelinePostEdit.tsx
@@ -86,7 +86,7 @@ export interface TimelinePostEditProps {
   className?: string;
   onPost: TimelinePostSendCallback;
   onHeightChange?: (height: number) => void;
-  timelineName: string;
+  timelineUniqueId: string;
 }
 
 const TimelinePostEdit: React.FC<TimelinePostEditProps> = (props) => {
@@ -99,7 +99,7 @@ const TimelinePostEdit: React.FC<TimelinePostEditProps> = (props) => {
   const [text, setText] = React.useState<string>('');
   const [imageBlob, setImageBlob] = React.useState<Blob | null>(null);
 
-  const draftLocalStorageKey = `timeline.${props.timelineName}.postDraft`;
+  const draftLocalStorageKey = `timeline.${props.timelineUniqueId}.postDraft`;
 
   React.useEffect(() => {
     setText(window.localStorage.getItem(draftLocalStorageKey) ?? '');
-- 
cgit v1.2.3

