Skip to content

Commit bf19bdc

Browse files
committed
fix: during an import of a series sale price has been shown as undefined when a response was empty.
Fix #1214
1 parent 37716f1 commit bf19bdc

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/main/frontend/src/components/SeriesSaleImportForm.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,15 @@ class SeriesSaleImportForm extends React.Component {
7474
document.getElementById('date').value = today;
7575

7676
document.getElementById('url').value = this.state.url;
77-
document.getElementById('price').value = data.price;
78-
document.getElementById('currency').value = data.currency;
77+
78+
if (data.price) {
79+
document.getElementById('price').value = data.price;
80+
}
81+
82+
if (data.currency) {
83+
document.getElementById('currency').value = data.currency;
84+
}
85+
7986
if (data.sellerId) {
8087
document.getElementById('seller').value = data.sellerId;
8188
}

src/main/java/ru/mystamps/web/feature/site/ResourceUrl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class ResourceUrl {
3232
public static final String STATIC_RESOURCES_URL = "https://stamps.filezz.ru";
3333

3434
// MUST be updated when any of our resources were modified
35-
public static final String RESOURCES_VERSION = "v0.4.2";
35+
public static final String RESOURCES_VERSION = "v0.4.2.1";
3636

3737
// CheckStyle: ignore LineLength for next 10 lines
3838
private static final String CATALOG_UTILS_JS = "/public/js/" + RESOURCES_VERSION + "/CatalogUtils.min.js";

0 commit comments

Comments
 (0)