trim new relay address string to fix copy and paste domain name spaces and tabs #537

This commit is contained in:
tykayn 2020-12-09 15:34:49 +01:00 committed by Baptiste Lemoine
parent 95efa43325
commit 44d597a118

View file

@ -161,7 +161,7 @@ export default class Followings extends Mixins(RelayMixin) {
await this.$apollo.mutate({
mutation: ADD_RELAY,
variables: {
address: this.newRelayAddress,
address: this.newRelayAddress.trim(), // trim to fix copy and paste domain name spaces and tabs
},
});
await this.$apollo.queries.relayFollowings.refetch();