Browse Source

fix(nc-gui): reset page when user opens audit from base context menu

pull/8836/head
Ramesh Mane 6 months ago
parent
commit
43295a6e5d
  1. 4
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

4
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -29,7 +29,7 @@ const { isMobileMode } = useGlobal()
const { api } = useApi()
const { auditLogsQuery } = storeToRefs(useWorkspace())
const { auditLogsQuery, auditCurrentPage } = storeToRefs(useWorkspace())
const { createProject: _createProject, updateProject, getProjectMetaInfo, loadProject } = basesStore
@ -454,6 +454,8 @@ const getSource = (sourceId: string) => {
async function openAudit(source: SourceType) {
$e('c:project:audit')
auditCurrentPage.value = 1
auditLogsQuery.value = {
...auditLogsQuery.value,
user: undefined,

Loading…
Cancel
Save