From 47d14e68fc76530ffeaa96419df1316c7ee0938b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1rbara=20Chaves?= Date: Tue, 9 Jan 2024 10:13:50 +0100 Subject: [PATCH] Fix hidration error (#45) --- client/src/containers/story/index.tsx | 4 ++-- .../containers/story/steps/controller/controller-item.tsx | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/client/src/containers/story/index.tsx b/client/src/containers/story/index.tsx index 995fb46..9de69d1 100644 --- a/client/src/containers/story/index.tsx +++ b/client/src/containers/story/index.tsx @@ -97,7 +97,7 @@ const Story = () => { ); })} -
+
{steps?.map((s, index) => ( { )} key={index} newStep={index} - title="" + title={s.title || ''} /> ))}
diff --git a/client/src/containers/story/steps/controller/controller-item.tsx b/client/src/containers/story/steps/controller/controller-item.tsx index a19bd40..9a9abd4 100644 --- a/client/src/containers/story/steps/controller/controller-item.tsx +++ b/client/src/containers/story/steps/controller/controller-item.tsx @@ -31,7 +31,12 @@ export const ScrollItemController = ({ title, newStep, className }: ScrollItemCo return ( <> - +