We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7def24a commit eb6c667Copy full SHA for eb6c667
src/lib/components/projects/controller.js
@@ -7,7 +7,15 @@ export async function loadProjectContext(projectId) {
7
const context = get(contextProject)
8
9
// If the context is already loaded, do not reload it
10
- if (context.project !== undefined) return
+ if (context.project !== undefined) {
11
+ const currentProjectId = context.project.id
12
+
13
+ // If the project loaded is the same as the one we want to load, do not reload it
14
+ if (currentProjectId === projectId) {
15
+ return
16
+ }
17
18
19
20
await getProject(projectId)
21
.then((project) => {
0 commit comments