{#each books as book (book.id)} {#if "books" in book} {#each book.books as bookData (bookData.id)} plugin.app.workspace .getLeaf(false) .openFile(bookData.file)} /> {/each} {:else} plugin.app.workspace.getLeaf(false).openFile(book.file)} /> {/if} {/each}