JSenkCC commited on
Commit
b3d5dc7
·
verified ·
1 Parent(s): cc0fc0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -120,11 +120,9 @@ def workspace_page():
120
  # Display "Projects" dropdown
121
  selected_project = st.sidebar.selectbox("Projects", ["Select a project"] + projects)
122
 
123
- # Ensure single-click selection works
124
- if selected_project != "Select a project" and st.session_state.current_project != selected_project:
125
  st.session_state.current_project = selected_project
126
  st.session_state.page = "project_view"
127
- # Instead of triggering an immediate rerun, rely on state to render the next page
128
 
129
  # Display success message if a project was uploaded
130
  if st.session_state.project_uploaded:
@@ -134,7 +132,6 @@ def workspace_page():
134
  # Main content area
135
  st.subheader("Workspace")
136
  st.write("You can create a new project by uploading files or folders, or by cloning a GitHub repository.")
137
-
138
  # Existing upload functionality...
139
 
140
 
 
120
  # Display "Projects" dropdown
121
  selected_project = st.sidebar.selectbox("Projects", ["Select a project"] + projects)
122
 
123
+ if selected_project != "Select a project":
 
124
  st.session_state.current_project = selected_project
125
  st.session_state.page = "project_view"
 
126
 
127
  # Display success message if a project was uploaded
128
  if st.session_state.project_uploaded:
 
132
  # Main content area
133
  st.subheader("Workspace")
134
  st.write("You can create a new project by uploading files or folders, or by cloning a GitHub repository.")
 
135
  # Existing upload functionality...
136
 
137