fix: do not cache Leads list - will need a better fix for this since filter is not working properly with cache

This commit is contained in:
Shariq Ansari 2023-08-15 12:08:59 +05:30
parent 360a91f8b7
commit 5d918fdeb6
3 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,7 @@ const contacts = createListResource({
fields: ['name', 'full_name', 'image', 'email_id', 'phone'],
orderBy: 'full_name asc',
cache: 'Contacts',
pageLength: 999,
pageLength: 20,
auto: true,
})

View File

@ -34,7 +34,7 @@
<Button icon="more-horizontal" />
</template>
</LayoutHeader>
<ListView :list="list" />
<ListView :list="list" row-key="name" />
</template>
<script setup>

View File

@ -104,7 +104,6 @@ const leads = createListResource({
],
filters: getArgs() || {},
orderBy: 'modified desc',
cache: 'Leads',
pageLength: 20,
auto: true,
})