Bugfix: In creation of a new app, only one image is now shown
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user