mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-18 01:36:12 +08:00
(update) Item card behavior in cases of error states [SCI-9683]
This commit is contained in:
parent
c2170e0eaf
commit
77c18747d2
1 changed files with 0 additions and 5 deletions
|
@ -120,11 +120,6 @@ export default {
|
|||
this.params = params;
|
||||
},
|
||||
dateValue(date) {
|
||||
const typesThatCantBeEmpty = ['dateRange', 'dateTimeRange'];
|
||||
if (date && (date.currentTarget === null) && typesThatCantBeEmpty.includes(this.dateType)) {
|
||||
this.errorMessage = I18n.t('repositories.item_card.date_time.errors.select_valid_value');
|
||||
return;
|
||||
}
|
||||
if(date) return new Date(date)
|
||||
return new Date()
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue