{#await categoryInfoPromise then categoryInfo} {#if categoryInfo?.exists} (categoryInfoPromise = getCategoryInfo(id, $masterKeyStore?.get(1)?.key!))} onSubCategoryCreateClick={() => (isCategoryCreateModalOpen = true)} subCategoryCreatePosition="top" /> {#if categoryInfo.id !== "root"} onAddToCategoryClick(categoryInfo.id)} class="w-full"> 이 카테고리에 추가하기 {/if} { if (await requestCategoryCreation(name, categoryInfo.id, $masterKeyStore?.get(1)!)) { categoryInfoPromise = getCategoryInfo(categoryInfo.id, $masterKeyStore?.get(1)?.key!); // TODO: FIXME return true; } return false; }} /> {/if} {/await}