diff --git a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue index ebb8b2f7a..e2b9c381c 100644 --- a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue @@ -122,7 +122,9 @@ export default { component: Select2, el: { multiple: false, - options: this.$store.state.users.workbenchOrgs?.map((item) => { + options: this.$store.state.users.workbenchOrgs.filter(item => { + return item.id !== '00000000-0000-0000-0000-000000000000' + })?.map((item) => { return { label: item.name, value: item.id } }) }, @@ -156,7 +158,9 @@ export default { }, computed: { ...mapState({ - workbenchOrgs: state => state.users.workbenchOrgs + workbenchOrgs: state => state.users.workbenchOrgs.filter(item => { + return item.id !== '00000000-0000-0000-0000-000000000000' + }) }), ...mapGetters(['currentOrg']) }, diff --git a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue index fe9541cf5..06cb69805 100644 --- a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue @@ -100,7 +100,9 @@ export default { component: Select2, el: { multiple: false, - options: this.$store.state.users.workbenchOrgs?.map((item) => { + options: this.$store.state.users.workbenchOrgs.filter(item => { + return item.id !== '00000000-0000-0000-0000-000000000000' + })?.map((item) => { return { label: item.name, value: item.id } }) }, @@ -130,7 +132,9 @@ export default { }, computed: { ...mapState({ - workbenchOrgs: state => state.users.workbenchOrgs + workbenchOrgs: state => state.users.workbenchOrgs.filter(item => { + return item.id !== '00000000-0000-0000-0000-000000000000' + }) }), ...mapGetters(['currentOrg']) },