diff --git a/app/src/components/OutputsTable/ScenarioEditor.tsx b/app/src/components/OutputsTable/ScenarioEditor.tsx
index 51770aa..8e2872f 100644
--- a/app/src/components/OutputsTable/ScenarioEditor.tsx
+++ b/app/src/components/OutputsTable/ScenarioEditor.tsx
@@ -111,25 +111,23 @@ export default function ScenarioEditor({
onDrop={onReorder}
backgroundColor={isDragTarget ? "gray.100" : "transparent"}
>
- {variableLabels.length === 0 ? (
-
- {vars.data ? "No scenario variables configured" : "Loading..."}
-
- ) : (
+ {
Scenario
-
- }
- onClick={() => setScenarioEditorModalOpen(true)}
- size="xs"
- colorScheme="gray"
- color="gray.500"
- variant="ghost"
- />
-
+ {variableLabels.length && (
+
+ }
+ onClick={() => setScenarioEditorModalOpen(true)}
+ size="xs"
+ colorScheme="gray"
+ color="gray.500"
+ variant="ghost"
+ />
+
+ )}
{canModify && props.canHide && (
)}
- {variableLabels.map((key) => {
- const value = values[key] ?? "";
- return (
- {
- setValues((prev) => ({ ...prev, [key]: e.target.value }));
- }}
- onKeyDown={(e) => {
- if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
- e.preventDefault();
- e.currentTarget.blur();
- onSave();
- }
- }}
- onMouseEnter={() => setVariableInputHovered(true)}
- onMouseLeave={() => setVariableInputHovered(false)}
- />
- );
- })}
+
+ {variableLabels.length === 0 ? (
+
+ {vars.data ? "No scenario variables configured" : "Loading..."}
+
+ ) : (
+ variableLabels.map((key) => {
+ const value = values[key] ?? "";
+ return (
+ {
+ setValues((prev) => ({ ...prev, [key]: e.target.value }));
+ }}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
+ e.preventDefault();
+ e.currentTarget.blur();
+ onSave();
+ }
+ }}
+ onMouseEnter={() => setVariableInputHovered(true)}
+ onMouseLeave={() => setVariableInputHovered(false)}
+ />
+ );
+ })
+ )}
{hasChanged && (
- )}
+ }
{scenarioEditorModalOpen && (
-
+ Edit Scenario