Spaces:
Runtime error
Runtime error
Update src/reducers/project-state.js
Browse files
src/reducers/project-state.js
CHANGED
@@ -414,6 +414,8 @@ const onFetchedProjectData = (projectData, loadingState) => {
|
|
414 |
|
415 |
const onLoadedProject = (loadingState, canSave, success) => {
|
416 |
switch (loadingState) {
|
|
|
|
|
417 |
case LoadingState.LOADING_VM_WITH_ID:
|
418 |
if (success) {
|
419 |
return {type: DONE_LOADING_VM_WITH_ID};
|
|
|
414 |
|
415 |
const onLoadedProject = (loadingState, canSave, success) => {
|
416 |
switch (loadingState) {
|
417 |
+
// Truthfully I don't know why this is even passed into here, but it seems to mean "loading has finished, we are showing the project now"
|
418 |
+
case LoadingState.SHOWING_WITHOUT_ID:
|
419 |
case LoadingState.LOADING_VM_WITH_ID:
|
420 |
if (success) {
|
421 |
return {type: DONE_LOADING_VM_WITH_ID};
|