File tree Expand file tree Collapse file tree
src/components/map-projects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2722,31 +2722,34 @@ const MapProject = () => {
27222722 }
27232723 </ span >
27242724 }
2725- < Controls
2726- isCoreUser = { isCoreUser }
2727- project = { project }
2728- onDownload = { onDownloadClick }
2729- onSave = { onSave }
2730- onDelete = { ( ) => setDeleteProject ( true ) }
2731- owner = { owner }
2732- file = { file }
2733- loadingMatches = { loadingMatches }
2734- isSaving = { isSaving }
2735- onImport = { isEmpty ( mapSelected ) ? false : ( ) => setOpenImportToCollection ( true ) }
2736- importResponse = { imports [ 0 ] }
2737- onDownloadImportReport = { downloadImportReport }
2738- onProjectLogsClick = { ( ) => {
2739- const newValue = ! showProjectLogs
2740- if ( newValue ) {
2741- setConfigure ( false )
2742- onCloseDecisions ( )
2743- }
2744- setShowProjectLogs ( newValue )
2745- } }
2746- isProjectsLogOpen = { showProjectLogs }
2747- configure = { configure }
2748- setConfigure = { setConfigure }
2749- />
2725+ {
2726+ file ?. name &&
2727+ < Controls
2728+ isCoreUser = { isCoreUser }
2729+ project = { project }
2730+ onDownload = { onDownloadClick }
2731+ onSave = { onSave }
2732+ onDelete = { ( ) => setDeleteProject ( true ) }
2733+ owner = { owner }
2734+ file = { file }
2735+ loadingMatches = { loadingMatches }
2736+ isSaving = { isSaving }
2737+ onImport = { isEmpty ( mapSelected ) ? false : ( ) => setOpenImportToCollection ( true ) }
2738+ importResponse = { imports [ 0 ] }
2739+ onDownloadImportReport = { downloadImportReport }
2740+ onProjectLogsClick = { ( ) => {
2741+ const newValue = ! showProjectLogs
2742+ if ( newValue ) {
2743+ setConfigure ( false )
2744+ onCloseDecisions ( )
2745+ }
2746+ setShowProjectLogs ( newValue )
2747+ } }
2748+ isProjectsLogOpen = { showProjectLogs }
2749+ configure = { configure }
2750+ setConfigure = { setConfigure }
2751+ />
2752+ }
27502753 </ div >
27512754 </ Paper >
27522755 {
You can’t perform that action at this time.
0 commit comments