Protofy-xyz / Protofy

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

Can't open the api page #85

Closed RogerOrRobert closed 6 months ago

RogerOrRobert commented 6 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 6 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.