6a614a520b
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
12 lines
273 B
JavaScript
12 lines
273 B
JavaScript
export const getters = {
|
|
getTeams($state) {
|
|
return Object.values($state.records).sort((a, b) => a.id - b.id);
|
|
},
|
|
getUIFlags($state) {
|
|
return $state.uiFlags;
|
|
},
|
|
getTeam: $state => id => {
|
|
const team = $state.records[id];
|
|
return team || {};
|
|
},
|
|
};
|