From 09528e71a9949c10a89cd983881662773a8fb7b8 Mon Sep 17 00:00:00 2001 From: amandesai01 Date: Wed, 4 Dec 2024 06:46:02 +0000 Subject: [PATCH] fix(splitpanes): patch to fix navigation error --- packages/nc-gui/.patches/splitpanes@3.1.5.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/nc-gui/.patches/splitpanes@3.1.5.patch diff --git a/packages/nc-gui/.patches/splitpanes@3.1.5.patch b/packages/nc-gui/.patches/splitpanes@3.1.5.patch new file mode 100644 index 0000000000..318c0a11ac --- /dev/null +++ b/packages/nc-gui/.patches/splitpanes@3.1.5.patch @@ -0,0 +1,15 @@ +diff --git a/dist/splitpanes.es.js b/dist/splitpanes.es.js +index 6a8e64363e592840123438b1a5959a580440b325..0b2ddee308cfbc48bef9351286b218d8cc1ace7b 100644 +--- a/dist/splitpanes.es.js ++++ b/dist/splitpanes.es.js +@@ -160,7 +160,9 @@ const M = { + }, + requestUpdate({ target: e, ...i }) { + const s = this.indexedPanes[e._.uid]; +- Object.entries(i).forEach(([n, t]) => s[n] = t); ++ if (s) { ++ Object.entries(i).forEach(([n, t]) => s[n] = t); ++ } + }, + onPaneAdd(e) { + let i = -1;