update frontend to use split operators

This commit is contained in:
Felix Kaspar
2024-07-14 00:53:57 +02:00
parent 4056d87335
commit 40ed0f68db
3 changed files with 31 additions and 35 deletions

View File

@@ -19,7 +19,7 @@ export async function getSchemaByName(name: string): Promise<OperatorSchema | un
// Check if exists
if(!compileTimeOperatorList.find(e => e.basename == name)) return;
i18next.loadNamespaces(name, (err, t) => { if (err) throw err; console.log(t) });
await i18next.loadNamespaces(name, (err) => { if (err) throw err; });
const loadedModule = await import("../functions/" + name + ".schema.ts");
const schema = loadedModule.default;
if(!schema) {