File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {useAutofetcher, useTypedSelector} from '../../utils/hooks';
10
10
import '../../services/api' ;
11
11
12
12
import EntityStatus from '../../components/EntityStatus/EntityStatus' ;
13
+ import { ResponseError } from '../../components/Errors/ResponseError' ;
13
14
import { Tag } from '../../components/Tag' ;
14
15
import { Icon } from '../../components/Icon' ;
15
16
import { EmptyState } from '../../components/EmptyState' ;
@@ -39,6 +40,7 @@ export const Tablet = () => {
39
40
id : tabletId ,
40
41
history = [ ] ,
41
42
tenantPath,
43
+ error,
42
44
} = useTypedSelector ( ( state ) => state . tablet ) ;
43
45
44
46
useEffect ( ( ) => {
@@ -68,6 +70,10 @@ export const Tablet = () => {
68
70
return < Loader size = "l" /> ;
69
71
}
70
72
73
+ if ( error ) {
74
+ return < ResponseError error = { error } /> ;
75
+ }
76
+
71
77
if ( ! tablet || ! Object . keys ( tablet ) . length ) {
72
78
return (
73
79
< div className = { b ( 'placeholder' ) } >
You can’t perform that action at this time.
0 commit comments