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 toolbar configuration issues
ammarahm-ed6deab82c1b95
diff --git a/apps/mobile/src/screens/settings/editor/tool.tsx b/apps/mobile/src/screens/settings/editor/tool.tsxindex d983df296..9f0fb3dd2 100644--- a/apps/mobile/src/screens/settings/editor/tool.tsx+++ b/apps/mobile/src/screens/settings/editor/tool.tsx@@ -72,14 +72,15 @@ export const Tool = ({ item, index, groupIndex, parentIndex }: DraggableItem) =>{name: 'minus',onPress: () => {- if (!groupIndex) return;+ if (typeof groupIndex !== 'number') return;const _data = useDragState.getState().data.slice();- if (!parentIndex) {+ if (typeof parentIndex !== 'number') {const index = _data[groupIndex].findIndex(tool => tool === item);_data[groupIndex].splice(index, 1);} else {//@ts-ignoreconst index = _data[parentIndex][groupIndex].findIndex(tool => tool === item);+ //@ts-ignore_data[parentIndex][groupIndex].splice(index, 1);}console.log(_data[groupIndex]);