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.width = 174;
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 +4626,7 @@ const AppCreator = (props) => {
setOpenImageModal(true); setOpenImageModal(true);
}} }}
> >
{!imageData && alternateImg} {imageData ? imageInfo : alternateImg}
{imageInfo}
<input <input
hidden hidden
type="file" type="file"