diff --git a/src/components/robot/pages/RobotEditPage.tsx b/src/components/robot/pages/RobotEditPage.tsx
index 53424bb2..178c5ad3 100644
--- a/src/components/robot/pages/RobotEditPage.tsx
+++ b/src/components/robot/pages/RobotEditPage.tsx
@@ -500,7 +500,7 @@ export const RobotEditPage = ({ handleStart }: RobotSettingsProps) => {
{scrapeListLimits.map((limitInfo, index) => {
// Get the corresponding scrapeList action to extract its name
const scrapeListAction = robot?.recording?.workflow?.[limitInfo.pairIndex]?.what?.[limitInfo.actionIndex];
- const actionName =
+ const actionName =
scrapeListAction?.name ||
`List Limit ${index + 1}`;
@@ -821,10 +821,19 @@ export const RobotEditPage = ({ handleStart }: RobotSettingsProps) => {
onChange={(e) => handleTargetUrlChange(e.target.value)}
style={{ marginBottom: "20px" }}
/>
-
- {renderScrapeListLimitFields()}
-
- {renderActionNameFields()}
+ {renderScrapeListLimitFields() && (
+ <>
+
+ {renderScrapeListLimitFields()}
+ >
+ )}
+
+ {renderActionNameFields() && (
+ <>
+
+ {renderActionNameFields()}
+ >
+ )}
>
)}