Skip to content

Commit f1f19fe

Browse files
Aboubakary833lordelogos
authored andcommitted
fix(app-preview): add key prop to select.item component (#124)
Co-authored-by: lordelogos <[email protected]>
1 parent 6cd4e14 commit f1f19fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/preview/app/src/components/mobile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Group = (key: keyof typeof devices) => {
1515
'!outline-none !select-none data-[highlighted]:bg-select-item-hover'
1616
);
1717
const items = devices[key].map((device) => (
18-
<Select.Item className={item} value={`${device.width},${device.height}`}>
18+
<Select.Item className={item} value={`${device.width},${device.height}`} key={device.name}>
1919
<Select.ItemText>{device.name}</Select.ItemText>
2020
<Select.ItemIndicator className="absolute left-0 inline-flex items-center">
2121
<CheckIcon />

apps/test/tests/helpers/html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const getHTML = async (locator: string | Locator, options?: GetHtmlOptions) => {
2424

2525
const { deep = true } = options || { deep: false };
2626
const raw = await locator.evaluate((node, d) => {
27-
const tgt = d ? node : (node as any).cloneNode();
27+
const tgt = d ? node : node.cloneNode();
2828

2929
return tgt.outerHTML;
3030
}, deep);

0 commit comments

Comments
 (0)