Browse Source

Merge pull request #8386 from nocodb/fix/org-store

fix: Add missing org store placeholder
pull/8389/head
Mert E 8 months ago committed by GitHub
parent
commit
68b20d3e8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 21
      packages/nc-gui/store/org.ts

21
packages/nc-gui/store/org.ts

@ -0,0 +1,21 @@
import { acceptHMRUpdate, defineStore } from 'pinia'
// a placeholder for the org store which is used in cloud version
export const useOrg = defineStore('orgStore', () => {
const org = ref()
const orgId = ref(null)
const loadOrg = async () => {}
const updateOrg = async (_updateObj: any) => {}
return {
org,
orgId,
updateOrg,
loadOrg,
}
})
if (import.meta.hot) {
import.meta.hot.accept(acceptHMRUpdate(useOrg as any, import.meta.hot))
}
Loading…
Cancel
Save