mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 13:40:24 +02:00
handle undefined options in GenericCell (#998)
This commit is contained in:
@@ -16,10 +16,8 @@ type Options = {
|
||||
primary?: boolean;
|
||||
};
|
||||
|
||||
export const GenericCell = (
|
||||
{ value, valueFormatted }: ICellRendererParams,
|
||||
{ isLink, position, primary }: Options,
|
||||
) => {
|
||||
export const GenericCell = ({ value, valueFormatted }: ICellRendererParams, options?: Options) => {
|
||||
const { isLink, position, primary } = options || {};
|
||||
const displayedValue = valueFormatted || value;
|
||||
|
||||
if (value === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user