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);
|
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 (
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user