You should move your post in the VueJS category.
Dec 15, 2022
6
Level 1
error - is not a function
Hi there,
I get this error when I click the button
TypeError: e.app.teamsDefaultMembers.apply is not a function
with the following code
<div class="space-y-4 sm:flex sm:space-x-4 sm:space-y-0">
<input
v-model="app.teamsDefaultMembers"
:placeholder="$t('change max team members shared')"
type="number"
min="1"
max="9999"
class="focus-border-theme input-dark"
:class="{ '!border-rose-600': errors[0] }"
/>
<ButtonBase
:loading="isSendingRequestMaxTeam"
:disabled="isSendingRequestMaxTeam"
type="submit"
button-style="theme"
@click.native="$updateText('/user/set', 'max_team_members', app.teamsDefaultMembers)"
class="w-full sm:w-auto"
>
{{ $t('Change Members') }}
</ButtonBase>
</div>
mounted() {
this.isSendingRequestMaxTeam = true
axios
.post('/api/user/info', {id:this.$route.params.id})
.then((response) => {
console.log(response.data);
this.isSendingRequestMaxTeam = false
this.app = {
teamsDefaultMembers: response.data.max_team_members,
}
})
},
Where is that problem ?
Thank you :)
Please or to participate in this conversation.