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, GetPrototypeByIdQuery,
GetPrototypeByIdQueryVariables GetPrototypeByIdQueryVariables
>(GET_PROTOTYPE_BY_ID, { >(GET_PROTOTYPE_BY_ID, {
@@ -199,7 +199,7 @@ const Prototype = () => {
<Spinner fullScreen color={role || 'client'} /> <Spinner fullScreen color={role || 'client'} />
); );
if (templateError || prototypeError || !template || !prototype) return ( if (templateError || !template) return (
<Wrapper color={role}> <Wrapper color={role}>
<Box <Box
width='100%' width='100%'