Problem with setting a context value

See below the following context and method. But when the method is triggered both objects (operator and newOperator) are updated instead of only the one that is assigned in the method (newOperator). Am I doing something wrong?

export default {
  data() {
    return {
      operator: {},
      newOperator: {}
  methods: {
    updateContext(e) {
      let self = this
      var t =;
      var c = self.newOperator;

      switch ( {
        case 'displayName':
        c.displayName = t.value;


I solved the issue myself:

Another method was executed where operator was referenced by newOperator.

Basic JS pitfall of mine, but I was glad I found out after a night’s sleep.