I am trying to use type instead of 'data' in the following example, to keep it dynamic, but I have no idea how to do so, could anyone possibly advice on what to do in this case?
Thank you!
I have:
    alreadyHas: function(type) {
        return this.dropdownPlan.data.id === this.currentPlan.data.id
    },
I want:
    alreadyHas: function(type) {
        return this.dropdownPlan.type.id === this.currentPlan.type.id
    },
 
     
    