Chore: more any/type assertion improvements (#57450)

* more friday any/type assertion improvements

* Apply suggestions from code review

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* Update public/app/angular/promiseToDigest.test.ts

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
This commit is contained in:
Ashley Harrison
2022-10-25 10:04:35 +01:00
committed by GitHub
parent 8adbacb18e
commit d2a70bc42d
47 changed files with 164 additions and 389 deletions

View File

@@ -56,7 +56,7 @@ export const PlaylistPage = () => {
{showSearch && (
<PageActionBar
searchQuery={searchQuery}
linkButton={contextSrv.isEditor && { title: 'New playlist', href: '/playlists/new' }}
linkButton={contextSrv.isEditor ? { title: 'New playlist', href: '/playlists/new' } : undefined}
setSearchQuery={setSearchQuery}
/>
)}