Skip to content

Commit 9e6b54f

Browse files
committed
Remove upload button from electron version
1 parent d68545f commit 9e6b54f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Project/Cards/OverviewCard/ScenarioRow.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { useChangesExist } from '../../../InputEditor/store';
1717
import DuplicateScenarioModal from '../../DuplicateScenarioModal';
1818
import DeleteScenarioModal from '../../DeleteScenarioModal';
1919
import { useScenarioLimits } from '../../../../store/server';
20+
import { isElectron } from '../../../../utils/electron';
2021

2122
const ScenarioRow = ({ project, scenarioName, scenarioList }) => {
2223
const sortedScenarios = useMemo(() => {
@@ -89,7 +90,7 @@ const ScenarioRow = ({ project, scenarioName, scenarioList }) => {
8990
/>
9091
)}
9192
<NewScenarioIcon />
92-
<UploadDownloadScenarioIcon />
93+
{!isElectron() && <UploadDownloadScenarioIcon />}
9394
</div>
9495
</div>
9596
<div

0 commit comments

Comments
 (0)