mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
- fixed state management bug where API instances were appended to existing array instead of replacing it - this caused duplicate API instances in React Strict Mode and potential memory leaks - replaced setApis((current) => [...current, newApi]) with proper array replacement - compute full API array from layers, then replace state completely - use .map() for transformation instead of side effects - the apis array has 1:1 relationship with layers (matched by ID), so accumulation was never intended
App
Troubleshooting
Map doesn't load and the Error You must define the Admin roll in the .env file! shows in the console.
In order to get the map running you need to define the correct uuid of the admin roll in the .env file.
Go to http://localhost:8055 and login with the admin credentials. Navigate to http://localhost:8055/admin/settings/roles and click Administrator and copy the UUID from the URL.
Put this UUID in the .env as VITE_DIRECTUS_ADMIN_ROLE=UUID