Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: simvalery <[email protected]>
  • Loading branch information
simvalery committed Dec 9, 2024
1 parent 480a445 commit 9b4ffcf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ export class SentinelHubTypeComponent implements OnInit, OnChanges, AfterViewIni
if (!/(\d+)-(\d+)-(\d+)/.test(from)) {
from = moment(from).format('YYYY-MM-DD');
}
if (!/(\d+)-(\d+)-(\d+)/.test(from)) {
from = moment(from).format('YYYY-MM-DD');
if (!/(\d+)-(\d+)-(\d+)/.test(to)) {
from = moment(to).format('YYYY-MM-DD');
}
console.log({from, to});
this.datePicker.patchValue({from, to});
this.generateImageLink(this.control.value, true);
}, 200);
Expand Down

0 comments on commit 9b4ffcf

Please sign in to comment.