From 5a5bd5bc030e9c8124ffd4997f81552907e8f046 Mon Sep 17 00:00:00 2001 From: Leon Date: Fri, 25 Mar 2022 14:37:31 +0100 Subject: [PATCH 1/2] fix refresh-issue when switching between radars Signed-off-by: Leon --- plugins/tech-radar/src/components/RadarComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tech-radar/src/components/RadarComponent.tsx b/plugins/tech-radar/src/components/RadarComponent.tsx index e26d44aa1a..e7cca7d45f 100644 --- a/plugins/tech-radar/src/components/RadarComponent.tsx +++ b/plugins/tech-radar/src/components/RadarComponent.tsx @@ -28,7 +28,7 @@ const useTechRadarLoader = (id: string | undefined) => { const { error, value, loading } = useAsync( async () => techRadarApi.load(id), - [techRadarApi], + [techRadarApi, id], ); useEffect(() => { From f69789330ac9b6cf658bbe4499fb37055065d96d Mon Sep 17 00:00:00 2001 From: Leon Date: Fri, 25 Mar 2022 14:43:22 +0100 Subject: [PATCH 2/2] changeset Signed-off-by: Leon --- .changeset/silly-llamas-relax.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/silly-llamas-relax.md diff --git a/.changeset/silly-llamas-relax.md b/.changeset/silly-llamas-relax.md new file mode 100644 index 0000000000..f5a002d46d --- /dev/null +++ b/.changeset/silly-llamas-relax.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-tech-radar': patch +--- + +Fix an issue where the Radar is not updated when switching between different radars