Skip to content

Commit 4c92ce1

Browse files
committed
fix(ws): remove comment and hide drawer on previousStep callback
1 parent 53b6b0b commit 4c92ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspaces/frontend/src/app/pages/Workspaces/Form/WorkspaceForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ const WorkspaceForm: React.FC = () => {
9494

9595
const previousStep = useCallback(() => {
9696
setCurrentStep(currentStep - 1);
97+
setDrawerExpanded(false);
9798
}, [currentStep]);
9899

99100
const nextStep = useCallback(() => {
@@ -185,7 +186,6 @@ const WorkspaceForm: React.FC = () => {
185186
navigate('workspaces');
186187
}, [navigate]);
187188

188-
// Handle item selection and drawer expansion
189189
const handleKindSelect = useCallback(
190190
(kind: WorkspaceKind | undefined) => {
191191
if (kind) {

0 commit comments

Comments
 (0)