Fix for UI1 upload bug

This commit is contained in:
ebolam
2023-02-13 14:35:55 -05:00
parent ec3ed9b4d9
commit c8059ae07e

View File

@@ -8068,7 +8068,7 @@ def ui2_serve_themes(path):
@logger.catch
def upload_file(data):
logger.debug("upload_file {}".format(data['filename']))
if data['upload_no_save']:
if 'upload_no_save' in data and data['upload_no_save']:
json_data = json.loads(data['data'].decode("utf-8"))
loadJSON(json_data)
else: