fix: #1189
This commit is contained in:
@@ -14,10 +14,8 @@ const RenderTitle : React.FC<Props> = (props) => {
|
|||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const titleFromForm = useTitle(useAsTitle);
|
const titleFromForm = useTitle(useAsTitle);
|
||||||
const titleFromData = data && data[useAsTitle];
|
|
||||||
|
|
||||||
let title = titleFromData;
|
let title = titleFromForm;
|
||||||
if (!title) title = titleFromForm;
|
|
||||||
if (!title) title = data?.id;
|
if (!title) title = data?.id;
|
||||||
if (!title) title = fallback;
|
if (!title) title = fallback;
|
||||||
title = titleFromProps || title;
|
title = titleFromProps || title;
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ describe('fields', () => {
|
|||||||
await page.locator('.tabs-field__tab-button:has-text("Tab with Row")').click();
|
await page.locator('.tabs-field__tab-button:has-text("Tab with Row")').click();
|
||||||
await page.locator('#field-textInRow').fill(textInRowValue);
|
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
|
// 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();
|
await page.locator('.tabs-field__tab-button:has-text("Tab with Array")').click();
|
||||||
|
|||||||
Reference in New Issue
Block a user