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'], fields: ['name', 'full_name', 'image', 'email_id', 'phone'],
orderBy: 'full_name asc', orderBy: 'full_name asc',
cache: 'Contacts', cache: 'Contacts',
pageLength: 999, pageLength: 20,
auto: true, auto: true,
}) })

View File

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

View File

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