Fix list create props (#2580)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-02-02 14:13:42 +06:00 committed by GitHub
parent dd7ee1c362
commit f31bf01247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,33 +93,35 @@
{#each categories as category, i} {#each categories as category, i}
{@const items = groupedDocs[category] ?? []} {@const items = groupedDocs[category] ?? []}
<ListCategory {#key category}
{elementByIndex} <ListCategory
{indexById} {elementByIndex}
{extraHeaders} {indexById}
{space} {extraHeaders}
{selectedObjectIds} {space}
{headerComponent} {selectedObjectIds}
initIndex={getInitIndex(categories, i)} {headerComponent}
{baseMenuClass} initIndex={getInitIndex(categories, i)}
{level} {baseMenuClass}
{viewOptions} {level}
{groupByKey} {viewOptions}
{config} {groupByKey}
{docByIndex} {config}
{itemModels} {docByIndex}
{_class} {itemModels}
singleCat={level === 0 && categories.length === 1} {_class}
{category} singleCat={level === 0 && categories.length === 1}
{items} {category}
{newObjectProps} {items}
{createItemDialog} {newObjectProps}
{createItemLabel} {createItemDialog}
{loadingPropsLength} {createItemLabel}
on:check {loadingPropsLength}
on:uncheckAll on:check
on:row-focus on:uncheckAll
{flatHeaders} on:row-focus
{props} {flatHeaders}
/> {props}
/>
{/key}
{/each} {/each}