Fix bug that prevents users from creating a new oauth application (#1706)

This commit is contained in:
Georg Krause 2022-03-09 15:34:24 +01:00 committed by Georg Krause
parent 706d55413b
commit e076172106
3 changed files with 6 additions and 5 deletions

View File

@ -0,0 +1 @@
Fix bug that prevents users from creating a new oauth application (#1706)

View File

@ -126,12 +126,12 @@ import TranslationsMixin from '@/components/mixins/Translations'
export default {
mixins: [TranslationsMixin],
props: {
app: { type: Object, required: false, default: () => { return {} } },
app: { type: Object, required: false, default: () => { return null } },
defaults: { type: Object, required: false, default: () => { return {} } }
},
data () {
const app = this.app || {}
const defaults = this.defaults || {}
const app = this.app || {}
return {
isLoading: false,
errors: [],

View File

@ -32,9 +32,9 @@ export default {
ApplicationForm
},
props: {
name: { type: String, required: true },
redirectUris: { type: String, required: true },
scopes: { type: Array, required: true }
name: { type: String, default: '' },
redirectUris: { type: String, default: '' },
scopes: { type: String, default: '' }
},
data () {
return {