Skip to content

Commit

Permalink
Make namespaces optional in UserContentCommonSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpeihl committed Nov 29, 2023
1 parent 3a17ef0 commit 0b0c990
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export interface UserContentCommonSchema {
id: string;
updatedAt: string;
managed?: boolean;
namespaces: string[];
namespaces?: string[];
references: SavedObjectsReference[];
type: string;
attributes: {
Expand Down Expand Up @@ -549,7 +549,7 @@ function TableListViewTableComp<T extends UserContentCommonSchema>({
<SpacesList
canShareToSpaces={canShareToSpaces}
spacesApi={spacesApi}
spaceIds={record.namespaces}
spaceIds={record.namespaces ?? []}
type={record.type}
noun={record.type}
id={record.id}
Expand Down

0 comments on commit 0b0c990

Please sign in to comment.