fix: Loading should be true when *not* having an entity

This commit is contained in:
Gustaf Räntilä
2021-02-23 13:33:47 +01:00
parent 29758e3001
commit 02816ecd72
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': patch
---
Fixed EntityProvider setting 'loading' bool erroneously to true
@@ -26,7 +26,7 @@ export const EntityProvider = ({ entity, children }: EntityProviderProps) => (
<EntityContext.Provider
value={{
entity,
loading: Boolean(entity),
loading: !Boolean(entity),
error: undefined,
}}
>