From 6ca6c565ec2a84d394f1a0867e704883cae8dce6 Mon Sep 17 00:00:00 2001 From: hamed musallam Date: Thu, 14 Dec 2023 12:16:44 +0100 Subject: [PATCH] feat: throw errors from nmrium using the error action --- src/NMRiumWrapper.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NMRiumWrapper.tsx b/src/NMRiumWrapper.tsx index fd7a67e..e857788 100644 --- a/src/NMRiumWrapper.tsx +++ b/src/NMRiumWrapper.tsx @@ -122,6 +122,9 @@ export default function NMRiumWrapper() { preferences={preferences} workspace={workspace} emptyText={defaultEmptyMessage} + onError={(error) => { + events.trigger('error', error); + }} />