Fix adding new relay
This commit is contained in:
parent
04c10cf5e6
commit
7e72078f29
2 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@ const relays = {
|
|||
state.fetchedRelays = relays
|
||||
},
|
||||
ADD_RELAY: (state, relay) => {
|
||||
state.fetchedRelays = [...state.fetchedRelays, relay]
|
||||
state.fetchedRelays = [...state.fetchedRelays, { actor: relay }]
|
||||
},
|
||||
DELETE_RELAY: (state, relay) => {
|
||||
state.fetchedRelays = state.fetchedRelays.filter(fetchedRelay => fetchedRelay !== relay)
|
||||
|
|
|
@ -53,6 +53,7 @@ export default {
|
|||
methods: {
|
||||
followRelay() {
|
||||
this.$store.dispatch('AddRelay', this.newRelay)
|
||||
this.newRelay = ''
|
||||
},
|
||||
deleteRelay(relay) {
|
||||
this.$store.dispatch('DeleteRelay', relay)
|
||||
|
|
Loading…
Reference in a new issue