Skip to content

Commit

Permalink
type updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iethree committed May 10, 2024
1 parent 88fea12 commit ecbdc46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/src/metabase-types/api/activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface BaseRecentItem {
id: number;
name: string;
model: ActivityModel;
description?: string | null;
timestamp: string;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/metabase-types/api/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export type UnrestrictedLinkEntity = {
model: SearchModel;
name: string;
display_name?: string;
description?: string;
description?: string | null;
display?: CardDisplayType;
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/metabase/lib/urls/modelToUrl.unit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ describe("urls > modelToUrl", () => {
},
timestamp: "2021-01-01T00:00:00.000Z",
}),
).toBe("/question#?db=22&table=33");
).toBe("/question/#?db=22&table=33");
});
});
2 changes: 1 addition & 1 deletion frontend/src/metabase/palette/hooks/useCommandPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const useCommandPalette = () => {
extra:
item.model === "table"
? {
database: item.model_object.database_name,
database: item.database.name,
href: Urls.modelToUrl(item),
}
: {
Expand Down

0 comments on commit ecbdc46

Please sign in to comment.