DjLeChuck / recalbox-manager

A web interface to manage recalbox configuration
25 stars 10 forks source link

Error when loading ROM list #77

Closed facundoolano closed 6 years ago

facundoolano commented 6 years ago

When entering the ROM list of some of the systems (but not all of them), the page stucks with the loading spinner.

The devtools shows a 500 error in one of the ajax calls:

Request URL: http://192.168.1.15/get?option=romsList&params=system=snes,subpath=
Request method: GET
Remote address: 192.168.1.15:80
Status code: 500
Response:
{"message":"Path must be a string. Received [ './downloaded_images/Batman (Proto)-image.png', '' ]","errors":{}}
facundoolano commented 6 years ago

This can be patched by adding this

if (Array.isArray(value)) {
  value = value[0];
}

before this line.

If that patch is good enough I can send a PR with it.

DjLeChuck commented 6 years ago

Thank you, you can send the PR!