I'm using VUEX GETTERS for some variables. I can use them in the html part but I cannot edit or change them in the script->data part.
ERROR:[Vue warn]: Error in data(): "ReferenceError: Positions is not defined"
<script>
import {mapGetters} from 'vuex'
export default {
data: () => ({
dialog: false,
TotalEntitiy:Positions[0] // GIVES ERROR
}),
computed:{
...mapGetters({
PageTitle: 'GETTER_CURRENT_PAGE',
headers: 'GETTER_HEADERS',
Positions: 'GETTER_POSITIONS',
items:'GETTER_ITEMS'
}),