Skip to content

Commit

Permalink
Merge pull request #777 from ita-social-projects/hot-fix-tox-streetcode
Browse files Browse the repository at this point in the history
fix tox in streetcode edit window
  • Loading branch information
MementoMorj authored Sep 16, 2023
2 parents bab3556 + 0448177 commit 81f4d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" />

<script src="https://cdn.tiny.cloud/1/52o10bl0rwinf56ixjw1xrn873s4l89vuqogn3l69p3lbr1p/tinymce/6.6.2-27/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/52o10bl0rwinf56ixjw1xrn873s4l89vuqogn3l69p3lbr1p/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<!-- Google map API -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCr5712Z86_z29W9biaPj8DcaggjbUAy7M&libraries=places"></script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ const NewStreetcode = () => {
}

if (parseId) {
TextsApi.getByStreetcodeId(parseId).then((result) => {
setInputInfo(result);
});
StreetcodeArtApi.getStreetcodeArtsByStreetcodeId(parseId).then((result) => {
const artToUpdate = result.map((streetcodeArt) => ({
...streetcodeArt,
Expand Down Expand Up @@ -246,16 +249,6 @@ const NewStreetcode = () => {
}
}, []);

useAsync(async () => {
if (parseId !== null) {
await TextsApi.getByStreetcodeId(parseId).then((result) => {
setInputInfo(result);
});
} else {
console.log('Parse id is null');
}
}, [parseId]);

const scrollToErrors = () => {
const errors = form.getFieldsError();
const firstErrorIndex = errors.findIndex((e) => e.errors.length > 0);
Expand Down

0 comments on commit 81f4d9f

Please sign in to comment.