CERTIFICAT

function initArticleProduit() { if (!!getGlobalData('PRODUCT_ID')) { // pas de WIP (execution en arrière plan) eshopProductService.getById(getGlobalData('PRODUCT_ID')) .then((res) => insererInfos(res.data)) // les erreurs 404 sont ignorées .catch((err) => err.response.status != 404 && RestApi.defaultXhrErrorHandler(err)) .finally(chargerRestriction); } } whenGlobalDataLoad() .then(initArticleProduit);