1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Making save and load props optional

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2023-05-23 15:08:49 +03:00
parent 0af884632e
commit 3162f5e669
2 changed files with 3 additions and 3 deletions

View File

@ -312,7 +312,7 @@ class NonInjectedItemListLayoutContent<
const selectedItems = store.pickOnlySelected(items); const selectedItems = store.pickOnlySelected(items);
if (table) { if (table) {
return <table.Component tableId={tableId} columns={this.context.columns} save={() => null} load={() => noop} /> return <table.Component tableId={tableId} columns={this.context.columns} />
} }
return ( return (

View File

@ -16,8 +16,8 @@ type Column = (
export interface TableComponentProps { export interface TableComponentProps {
tableId?: string; tableId?: string;
columns?: Column[]; columns?: Column[];
save: (state: object) => void; save?: (state: object) => void;
load: (tableId: string) => object; load?: (tableId: string) => object;
} }
export interface TableDataContextValue { export interface TableDataContextValue {