Skip to content

Commit

Permalink
refactor: Remove obsolete references to key, setkey
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s committed Aug 27, 2024
1 parent 8efac09 commit 4fea6e8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ const Sidebar: React.FC<{
state.validateAndDiffFlow,
state.isFlowPublished,
]);
const [key, setKey] = useState<boolean>(false);
const [lastPublishedTitle, setLastPublishedTitle] = useState<string>(
"This flow is not published yet",
);
Expand Down Expand Up @@ -447,13 +446,12 @@ const Sidebar: React.FC<{
variant="link"
onClick={() => {
resetPreview();
setKey((a) => !a);
}}
>
<Reset fontSize="small" />
Restart
</ResetToggle>
<Questions previewEnvironment="editor" key={String(key)} />
<Questions previewEnvironment="editor" />
</SidebarContainer>
)}
{activeTab === "History" && (
Expand Down

0 comments on commit 4fea6e8

Please sign in to comment.