Fix storybook tests on Field Preview (Settings) (#3761)

This commit is contained in:
Charles Bochet
2024-02-01 17:44:36 +01:00
committed by GitHub
parent dda9eaca2a
commit 39f4ec9e7b
4 changed files with 37 additions and 2 deletions

View File

@ -8,7 +8,7 @@ export const CurrencyFieldDisplay = () => {
return (
<CurrencyDisplay
amount={
fieldValue.amountMicros ? fieldValue.amountMicros / 1000000 : null
fieldValue?.amountMicros ? fieldValue.amountMicros / 1000000 : null
}
/>
);

View File

@ -69,7 +69,7 @@ export const RecordTableRow = ({ recordId, rowIndex }: RecordTableRowProps) => {
<RecordTableCellContainer />
</RecordTableCellContext.Provider>
) : (
<td></td>
<td key={column.fieldMetadataId}></td>
);
})}
<td></td>