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