Browse Source

fix(nc-gui): cater empty records

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
20a5a348a5
  1. 2
      packages/nc-gui/components/webhook/CallLog.vue

2
packages/nc-gui/components/webhook/CallLog.vue

@ -22,6 +22,8 @@ const currentLimit = $ref(3)
async function loadHookLogs(page = currentPage, limit = currentLimit) { async function loadHookLogs(page = currentPage, limit = currentLimit) {
try { try {
// cater empty records
page = page || 1
const { list, pageInfo } = await api.dbTableWebhookLogs.list(props.hook.id!, { const { list, pageInfo } = await api.dbTableWebhookLogs.list(props.hook.id!, {
offset: limit * (page - 1), offset: limit * (page - 1),
limit, limit,

Loading…
Cancel
Save