From f54d14bdb1642c17e0f3dea943af5080bcd2de3a Mon Sep 17 00:00:00 2001 From: Jamal C <18269441+jamalc@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:25:57 -0500 Subject: [PATCH] fix datauri typo --- resources/js/Pages/Dashboard.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/Pages/Dashboard.jsx b/resources/js/Pages/Dashboard.jsx index b8fbb87..80ba501 100644 --- a/resources/js/Pages/Dashboard.jsx +++ b/resources/js/Pages/Dashboard.jsx @@ -156,7 +156,7 @@ export default function Dashboard({ modelname }) { setData(file_response.data); // Create a URL for the Blob bytesToBase64(shap_response.data).then(blob => { - setShapImgBlob(`data:image/png;base64,${blob}`); + setShapImgBlob(blob); }) } else { // If the output filename isn't present in the run, that means it hasn't completed. This is not an error but we should handle it. @@ -222,7 +222,7 @@ export default function Dashboard({ modelname }) { let shap_filename = csv_filename.replace("inference_output.csv", "shap_chart.png"); return axios.get('/output-file-bytes/'+shap_filename).then(res1 => { bytesToBase64(res1.data).then(blob => { - setShapImgBlob(`data:image/png;base64,${blob}`); + setShapImgBlob(blob); }); }).catch(err1 => setError(err1)); }