Skip to content

Commit 600f1d3

Browse files
authored
fix: set share to null to reset the state (#3947)
1 parent ef08420 commit 600f1d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flows/components/header/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ const FlowHeader: FC = () => {
313313
const handleClone = async () => {
314314
event('clone_notebook')
315315
const clonedId = await clone(flow.id)
316+
setShare(null)
316317
history.push(
317318
`/orgs/${orgID}/${PROJECT_NAME_PLURAL.toLowerCase()}/${clonedId}`
318319
)

0 commit comments

Comments
 (0)