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

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