This commit is contained in:
James
2022-10-06 15:42:20 -04:00
parent 5bf1354741
commit 3641dfd38a
2 changed files with 3 additions and 5 deletions

View File

@@ -14,10 +14,8 @@ const RenderTitle : React.FC<Props> = (props) => {
} = props;
const titleFromForm = useTitle(useAsTitle);
const titleFromData = data && data[useAsTitle];
let title = titleFromData;
if (!title) title = titleFromForm;
let title = titleFromForm;
if (!title) title = data?.id;
if (!title) title = fallback;
title = titleFromProps || title;

View File

@@ -122,7 +122,7 @@ describe('fields', () => {
await page.locator('.tabs-field__tab-button:has-text("Tab with Row")').click();
await page.locator('#field-textInRow').fill(textInRowValue);
await wait(100);
await wait(250);
// Go to Array tab, then back to Row. Make sure new value is still there
await page.locator('.tabs-field__tab-button:has-text("Tab with Array")').click();