Vue Undefined function where as the function is defined

Viewed 25

I've a vue component with methods and the methods has got several functions It works well in development but it doesn't work in prod it shows the function is not defined where as the function is defined in the methods

I wonder does the order of the function matter like in Python?

  methods: {
getCollectionInfo(row) {
  return {
    id: this.getNewId(),
    poi_name: this.getName(row),
    poi_serial: this.getSerial(row),
    poi_notes_email: row.notesemail || row.notes_email || '',
    status: 'New',
  }
},
    getName(row) {
      return row.poiname || row.poi_name || row.name || ''
    },

    getSerial(row) {
      return  row.uid || row.talent_id  ''
    },
}

This works in development in production I get the error

TypeError:e.getSerial(...) is undefined

0 Answers
Related