handlePermissionSelect(index)}
style={{padding: '12px 14px', maxWidth: '100%'}}>
diff --git a/gui/pages/Content/Agents/ResourceList.js b/gui/pages/Content/Agents/ResourceList.js
index ce3dcfa9f..288628eac 100644
--- a/gui/pages/Content/Agents/ResourceList.js
+++ b/gui/pages/Content/Agents/ResourceList.js
@@ -4,7 +4,7 @@ import Image from "next/image";
import {downloadFile, downloadAllFiles, formatBytes, returnResourceIcon} from "@/utils/utils";
export default function ResourceList({files, channel, runs}) {
- const [selectedRun, setSelectedRun] = useState(null);
+ const [selectedRunId, setSelectedRunId] = useState(null);
const filesByRun = useMemo(() => runs.map(run => {
const relatedFiles = files.filter(file => file.agent_execution_id === run.id);
return relatedFiles.length !== 0 && {"run": run, "files": relatedFiles};
@@ -15,7 +15,7 @@ export default function ResourceList({files, channel, runs}) {
runFiles.length !== 0 && downloadAllFiles(runFiles, name);
}
- const isAnyFileWithAgentId = files.some(file => file.agent_execution_id !== null)
+ const isAnyFileWithAgentId = files.some(file => file.agent_execution_id !== null);
const File = ({file, index}) => (
downloadFile(file.id, file.name)} className={styles.history_box}
@@ -45,10 +45,10 @@ export default function ResourceList({files, channel, runs}) {
{filesByRun.map((filesRun, index) => (
setSelectedRun(filesRun.run === selectedRun ? null : filesRun.run)}>
+ onClick={() => setSelectedRunId(filesRun.run.id === selectedRunId ? null : filesRun.run.id)}>
{filesRun.run.name}
downloadRunFiles(filesRun.run.id, filesRun.run.name)}/>
- {selectedRun === filesRun.run && (
+ {selectedRunId === filesRun.run.id && (
- {/* eslint-disable-next-line react/jsx-key */}
- {filesRun.files.map((file, index) => )}
+ {filesRun.files.map((file, index) => )}
)}
@@ -72,8 +71,7 @@ export default function ResourceList({files, channel, runs}) {
{channel === 'input' &&
- {/* eslint-disable-next-line react/jsx-key */}
- {files.map((file, index) => )}
+ {files.map((file, index) => )}
}
)
diff --git a/gui/pages/Content/Marketplace/AgentTemplate.js b/gui/pages/Content/Marketplace/AgentTemplate.js
index f1d4bda4c..99393a110 100644
--- a/gui/pages/Content/Marketplace/AgentTemplate.js
+++ b/gui/pages/Content/Marketplace/AgentTemplate.js
@@ -53,7 +53,7 @@ export default function AgentTemplate({template, env}) {
setGoals(data.configs.goal.value)
setConstraints(data.configs.constraints.value)
setTools(data.configs.tools.value)
- setInstructions(data.configs.instructions ? data.configs.instructions.value : null);
+ setInstructions(data.configs.instruction ? data.configs.instruction.value : null);
setIsLoading(false)
}
@@ -175,7 +175,6 @@ export default function AgentTemplate({template, env}) {
{instructions.map((instruction, index) => (
{index + 1}. {instruction || ''}
- {index !== instructions.length - 1 &&
}
))}
}
diff --git a/gui/pages/_app.css b/gui/pages/_app.css
index 646a735dd..7cb54b15c 100644
--- a/gui/pages/_app.css
+++ b/gui/pages/_app.css
@@ -653,6 +653,9 @@ p {
.mb_10{margin-bottom: 10px;}
.mb_16{margin-bottom: 16px;}
.mb_20{margin-bottom: 20px;}
+.mb_24{margin-bottom: 24px;}
+.mb_30{margin-bottom: 30px;}
+.mb_34{margin-bottom: 34px;}
.ml_24{margin-left:24px;}
.ml_6{margin-left: 6px;}