feat: show error on broken recipe url's (#2197)

This commit is contained in:
Zaki Ali
2025-04-15 09:49:06 -07:00
committed by GitHub
parent beb5d4a63e
commit 6549b6d429
2 changed files with 11 additions and 3 deletions
+6
View File
@@ -300,6 +300,12 @@ export default function App() {
// Initialize config first
await initConfig();
// note: if in a non recipe session, recipeConfig is undefined, otherwise null if error
if (recipeConfig === null) {
setFatalError('Cannot read recipe config. Please check the deeplink and try again.');
return;
}
// Handle bot config extensions first
if (recipeConfig?.extensions?.length > 0 && viewType != 'recipeEditor') {
console.log('Found extensions in bot config:', recipeConfig.extensions);