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:
parent
0af884632e
commit
3162f5e669
@ -312,7 +312,7 @@ class NonInjectedItemListLayoutContent<
|
||||
const selectedItems = store.pickOnlySelected(items);
|
||||
|
||||
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 (
|
||||
|
||||
@ -16,8 +16,8 @@ type Column = (
|
||||
export interface TableComponentProps {
|
||||
tableId?: string;
|
||||
columns?: Column[];
|
||||
save: (state: object) => void;
|
||||
load: (tableId: string) => object;
|
||||
save?: (state: object) => void;
|
||||
load?: (tableId: string) => object;
|
||||
}
|
||||
|
||||
export interface TableDataContextValue {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user