Skip to content

Instantly share code, notes, and snippets.

@ChinnakornP
Last active June 5, 2018 08:07
Show Gist options
  • Select an option

  • Save ChinnakornP/2bb99475e8158b2c12af4dd63dc98c23 to your computer and use it in GitHub Desktop.

Select an option

Save ChinnakornP/2bb99475e8158b2c12af4dd63dc98c23 to your computer and use it in GitHub Desktop.
const selectedEmployee = this.employeeSelected.map(form => {
if (form.value.day <= 0) {
try {
this.notification.error('กรุณาเลือกจำนวนวัน');
throw new Error('Must be select day');
} catch (err) {
///
}
}
return form.value;
});
console.log('errr pass here')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment