From 397828243581599c0412ecf18e0d0a4d69e523a6 Mon Sep 17 00:00:00 2001
From: DD Liu <liudi@media.mit.edu>
Date: Thu, 12 Jul 2018 16:48:07 -0400
Subject: [PATCH] Correct call to addCostumeFromBuffer for svgs

---
 src/lib/file-uploader.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/file-uploader.js b/src/lib/file-uploader.js
index a5805c1c8..a0690f2b0 100644
--- a/src/lib/file-uploader.js
+++ b/src/lib/file-uploader.js
@@ -129,7 +129,7 @@ const costumeUpload = function (fileData, fileType, costumeName, storage, handle
         // passing in an array buffer causes the sprite/costume
         // thumbnails to not display because the data URI for the costume
         // is invalid
-        addCostumeFromBuffer(null, new Uint8Array(fileData));
+        addCostumeFromBuffer(new Uint8Array(fileData));
     } else {
         // otherwise it's a bitmap
         bitmapAdapter.importBitmap(fileData, fileType).then(addCostumeFromBuffer);
-- 
GitLab