Bugfix: In creation of a new app, only one image is now shown

This commit is contained in:
Isoporhode
2021-11-14 23:57:33 +01:00
parent 7e38eb96eb
commit 5304703563
+2 -2
View File
@@ -4331,6 +4331,7 @@ const AppCreator = (props) => {
canvas.height = 174; canvas.height = 174;
var ctx = canvas.getContext("2d"); var ctx = canvas.getContext("2d");
if (img)
img.onload = function () { img.onload = function () {
// img, x, y, width, height // img, x, y, width, height
//ctx.drawImage(img, 174, 174) //ctx.drawImage(img, 174, 174)
@@ -4626,8 +4627,7 @@ const AppCreator = (props) => {
setOpenImageModal(true); setOpenImageModal(true);
}} }}
> >
{!imageData && alternateImg} {imageData ? imageInfo : alternateImg}
{imageInfo}
<input <input
hidden hidden
type="file" type="file"