Skip to content

Commit bdb393c

Browse files
committed
fix: Fix mergeFields function for tabs fields
1 parent 4ca2cdf commit bdb393c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/payload-authjs/src/payload/utils/mergeFields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const mergeFields = ({
7373
const tabsField = fields.find(f => f.type === "tabs");
7474
if (tabsField) {
7575
for (let t = 0; t < field.tabs.length; t++) {
76-
const tab = field.tabs[i];
76+
const tab = field.tabs[t];
7777
const tabType = tabHasName(tab) ? "named" : "unnamed";
7878
const existingTab = findTabField(
7979
tabsField.tabs,

0 commit comments

Comments
 (0)