Skip to content

Commit

Permalink
Remove a cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Mar 21, 2024
1 parent e02f6fb commit b762d0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/metabase-types/api/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export type CollectionItemModel =
| "collection"
| "indexed-entity";

export type CollectionItemId = number;
export type CollectionItemId = CollectionId;

export interface CollectionItem {
id: CollectionItemId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const walkForCollectionItems = (node: MockCollection[]) => {
node.forEach(n => {
const collectionItems = n.collections.map((c: MockCollection) =>
createMockCollectionItem({
id: c.id as number,
id: c.id,
name: c.name,
model: "collection",
location: c.location || "/",
Expand Down

0 comments on commit b762d0f

Please sign in to comment.