gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
this.storeData.map((e: any) => { if (!e.storeId) { this.toastr.error('There is missing…
- User
this.storeData.map((e: any) => { if (!e.storeId) { this.toastr.error('There is missing data in the sheet!', 'Failed'); this.storeData = []; this.fileName = ''; } check stoeId from index 1 not index 0
- Assistant
this.storeData.map((e: any, index: number) => { if (index !== 0 && !e.storeId) { this.toastr.error('There is missing data in the sheet!', 'Failed'); this.storeData = []; this.fileName = ''; } }); - User
this is excel sheet i want to exclude first row from checking of existing storeId
- Assistant
this.storeData.slice(1).map((e: any) => { if (!e.storeId) { this.toastr.error('There is missing data in the sheet!', 'Failed'); this.storeData = []; this.fileName = ''; } }); - User
ok well but also don't accept rhe storedData with firstrow only
- Assistant
if (this.storeData.length <= 1) { this.toastr.error('There is missing data in the sheet!', 'Failed'); this.storeData = []; this.fileName = ''; } else { this.storeData.slice(1).map((e: any) => { if (!e.storeId) { this.toastr.error('There is missing data in the sheet!', 'Failed'); this.storeData = []; this.fileName = ''; } }); }