this.defectdata = uniqueObjects.filter( (obj, index, self) => index === self.findIndex((t) => t.name === obj.name) );