fix(scenarios): add error handling for API calls and dev script with local API

- add catch handler to promises for better error visibility
- use null coalescing operators to prevent undefined accessing
- add dev:compose-api npm script pointing to localhost:13000 API
- include toast dependency in useCallback to avoid stale closures
This commit is contained in:
2026-04-14 23:09:38 +03:00
parent e66e53c817
commit 6c43b53590
2 changed files with 7 additions and 3 deletions
+1
View File
@@ -4,6 +4,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"dev:compose-api": "VITE_API_URL=http://localhost:13000/api/v1 vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",