Fix prototype addition behaviour

This commit is contained in:
Hazem Krimi
2023-05-11 19:30:19 +01:00
parent 38527c2621
commit 390d833e74
+2 -2
View File
@@ -69,7 +69,7 @@ const Prototype = () => {
},
});
const [getPrototype, { loading: prototypeLoading, error: prototypeError }] = useLazyQuery<
const [getPrototype, { loading: prototypeLoading }] = useLazyQuery<
GetPrototypeByIdQuery,
GetPrototypeByIdQueryVariables
>(GET_PROTOTYPE_BY_ID, {
@@ -199,7 +199,7 @@ const Prototype = () => {
<Spinner fullScreen color={role || 'client'} />
);
if (templateError || prototypeError || !template || !prototype) return (
if (templateError || !template) return (
<Wrapper color={role}>
<Box
width='100%'