Skip to content
Snippets Groups Projects
Commit ca32ffd3 authored by Dirk Ecker's avatar Dirk Ecker :speech_balloon:
Browse files
parent d6e432aa
No related tags found
1 merge request!285Fixes https://gitlab.hzdr.de/hub-terra/sms/frontend/-/issues/308
......@@ -41,10 +41,13 @@ interface contactsState{
configurationContacts: Contact[]
}
export const state = {
allContacts: [],
configurationContacts: []
export const state = () => {
return {
allContacts: [],
configurationContacts: []
}
}
export const getters = {
searchContacts: (state: contactsState) => {
return state.allContacts.filter((c: Contact) => !state.configurationContacts.find((rc: Contact) => rc.id === c.id))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment