Skip to content

Commit 3e5a105

Browse files
committed
Merge branch 'main' into chore/ui-improvements
2 parents bef2ef2 + 801add3 commit 3e5a105

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/interface/NavigraphNavigationDataInterface.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ export class NavigraphNavigationDataInterface {
341341
* @returns A promise that resolves when the function returns
342342
*/
343343
private async callWasmFunction<T = unknown>(name: keyof typeof NavigraphFunction, data: unknown): Promise<T> {
344+
if (!this.isInitialized) {
345+
throw new Error("Interface is not initialized")
346+
}
347+
344348
const id = Utils.generateGUID()
345349

346350
const args = {

0 commit comments

Comments
 (0)