From 0062fc08917e9ee70148105fe5134e9f4dcf9aba Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Sat, 4 Dec 2021 13:44:47 +0100
Subject: fix: add org-attach-id-dir support (#153)

---
 util/uniorg.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'util/uniorg.tsx')

diff --git a/util/uniorg.tsx b/util/uniorg.tsx
index 68f0330..c4407f2 100644
--- a/util/uniorg.tsx
+++ b/util/uniorg.tsx
@@ -14,6 +14,7 @@ export interface UniOrgProps {
   collapse: boolean
   linksByNodeId: LinksByNodeId
   macros?: { [key: string]: string }
+  attachDir: string
 }
 
 export const UniOrg = (props: UniOrgProps) => {
@@ -28,6 +29,7 @@ export const UniOrg = (props: UniOrgProps) => {
     collapse,
     linksByNodeId,
     macros,
+    attachDir,
   } = props
 
   const [previewText, setPreviewText] = useState('')
@@ -69,8 +71,9 @@ export const UniOrg = (props: UniOrgProps) => {
             outline,
             collapse,
             linksByNodeId,
-            macros,
+            attachDir,
           }}
+          macros={macros || {}}
         />
       )}
     </>
-- 
cgit v1.2.3

