Browse Source

fix: add missing store placeholder

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/8386/head
Pranav C 5 months ago
parent
commit
0e9beb3042
  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