diff --git a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx index b1112a9b5b..55ccee4068 100644 --- a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx +++ b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx @@ -58,10 +58,10 @@ const KeyValueList: FC = ({ return (
-
-
{t(`${i18nPrefix}.key`, { ns: 'workflow' })}
- {isSupportFile &&
{t(`${i18nPrefix}.type`, { ns: 'workflow' })}
} -
{t(`${i18nPrefix}.value`, { ns: 'workflow' })}
+
+
{t(`${i18nPrefix}.key`, { ns: 'workflow' })}
+ {isSupportFile &&
{t(`${i18nPrefix}.type`, { ns: 'workflow' })}
} +
{t(`${i18nPrefix}.value`, { ns: 'workflow' })}
{ list.map((item, index) => ( diff --git a/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx b/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx index d85b622e10..0d31428bd2 100644 --- a/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx +++ b/web/app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx @@ -96,7 +96,10 @@ const GenericTable: FC = ({ }) // If the last configured row has content, append a trailing empty row - const lastHasContent = !isEmptyRow(data[data.length - 1]) + const lastRow = data.at(-1) + if (!lastRow) + return rows + const lastHasContent = !isEmptyRow(lastRow) if (lastHasContent) rows.push({ row: { ...emptyRowData }, dataIndex: null, isVirtual: true }) @@ -163,7 +166,7 @@ const GenericTable: FC = ({ // Ghost/inline style: looks like plain text until focus/hover 'h-6 rounded-none border-0 bg-transparent px-0 py-0 shadow-none', 'hover:border-transparent hover:bg-transparent focus:border-transparent focus:bg-transparent', - 'system-sm-regular text-text-secondary placeholder:text-text-quaternary', + 'text-text-secondary system-sm-regular placeholder:text-text-quaternary', )} /> ) @@ -212,12 +215,12 @@ const GenericTable: FC = ({ return (
{showHeader && ( -
+
{columns.map((column, index) => (
= ({ return (
-

{title}

+

{title}

{showPlaceholder diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index abd403a6f6..40c8a43205 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -7490,9 +7490,6 @@ } }, "app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx": { - "tailwindcss/enforce-consistent-class-order": { - "count": 1 - }, "ts/no-explicit-any": { "count": 2 } @@ -8522,9 +8519,6 @@ "app/components/workflow/nodes/trigger-webhook/components/generic-table.tsx": { "no-restricted-imports": { "count": 1 - }, - "tailwindcss/enforce-consistent-class-order": { - "count": 3 } }, "app/components/workflow/nodes/trigger-webhook/default.ts": {