Dashboards: Star dashboards by UID (#63134)

* Dashboards: Star dashboards by UID

* undo async
This commit is contained in:
Josh Hunt
2023-02-09 10:24:46 +00:00
committed by GitHub
parent 00b692c0f9
commit 58f3f00bd5
3 changed files with 5 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ export const DashNav = React.memo<Props>((props) => {
const dashboardSrv = getDashboardSrv();
const { dashboard, setStarred } = props;
dashboardSrv.starDashboard(dashboard.id, Boolean(dashboard.meta.isStarred)).then((newState) => {
dashboardSrv.starDashboard(dashboard.uid, Boolean(dashboard.meta.isStarred)).then((newState) => {
setStarred({ id: dashboard.uid, title: dashboard.title, url: dashboard.meta.url ?? '', isStarred: newState });
dashboard.meta.isStarred = newState;
forceUpdate();