AnnotationList: Fix link for annotation with no panel or dashboard (#87048)

* Handle case for no associated panel or dashboard

* Convert to CSS object

* Add tests and extend type to cover null use case
This commit is contained in:
Tobias Skarhed
2024-05-02 11:30:19 +03:00
committed by GitHub
parent 6ddb8aeae3
commit a59e7e14b1
4 changed files with 42 additions and 13 deletions
+1 -2
View File
@@ -5474,8 +5474,7 @@ exports[`better eslint`] = {
[0, 0, 0, "Styles should be written using objects.", "6"]
],
"public/app/plugins/panel/annolist/AnnoListPanel.tsx:5381": [
[0, 0, 0, "Do not use any type assertions.", "0"],
[0, 0, 0, "Styles should be written using objects.", "1"]
[0, 0, 0, "Do not use any type assertions.", "0"]
],
"public/app/plugins/panel/barchart/BarChartPanel.tsx:5381": [
[0, 0, 0, "Do not use any type assertions.", "0"],