Skip to content

Commit 9b4ffcf

Browse files
committed
fix
Signed-off-by: simvalery <[email protected]>
1 parent 480a445 commit 9b4ffcf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/app/modules/schema-engine/sentinel-hub-type/sentinel-hub-type.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ export class SentinelHubTypeComponent implements OnInit, OnChanges, AfterViewIni
111111
if (!/(\d+)-(\d+)-(\d+)/.test(from)) {
112112
from = moment(from).format('YYYY-MM-DD');
113113
}
114-
if (!/(\d+)-(\d+)-(\d+)/.test(from)) {
115-
from = moment(from).format('YYYY-MM-DD');
114+
if (!/(\d+)-(\d+)-(\d+)/.test(to)) {
115+
from = moment(to).format('YYYY-MM-DD');
116116
}
117+
console.log({from, to});
117118
this.datePicker.patchValue({from, to});
118119
this.generateImageLink(this.control.value, true);
119120
}, 200);

0 commit comments

Comments
 (0)