Protofy-xyz / Protofy

AI Supercharged LowCode Platform CMS and Framework 🚀🚀
https://protofy.xyz/
MIT License
237 stars 50 forks source link

Can't open the api page #85

Closed RogerOrRobert closed 8 months ago

RogerOrRobert commented 8 months ago

Expected Behavior

When you go to the API page, you see all the apis created.

Current Behavior

When you go to the API page, you encounter with an error message.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to '/workspace/apis'
  2. See error

Context (Environment)

Issue demo

Example of the error that appears on the apis page: image

RogerOrRobert commented 8 months ago

In the lines 117-118 of protolib/bundles/devices/devices/devicesPage paste the following code:

const deviceCodeDot = deviceCode.replace(';', "")
const deviceObj = eval(deviceCodeDot)**

This error origins from the creation of the device definition erroneously, putting a ';' at the end of the device definition.