A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: use webview.current to check valid instance
Ammar Ahmed5ab91644b402
diff --git a/apps/mobile/src/screens/editor/tiptap/commands.ts b/apps/mobile/src/screens/editor/tiptap/commands.tsindex 303a1a452..5c8574aa5 100644--- a/apps/mobile/src/screens/editor/tiptap/commands.ts+++ b/apps/mobile/src/screens/editor/tiptap/commands.ts@@ -17,7 +17,7 @@ export type Settings = {};async function call(webview: RefObject<WebView | undefined>, action?: Action) {- if (!webview || !action) return;+ if (!webview.current || !action) return;setImmediate(() => webview.current?.injectJavaScript(action.job));let response = await getResponse(action.id);console.log('webview job: ', action.id, response ? response.value : response);