Skip to content

Commit

Permalink
fix tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ramory-l committed Jan 5, 2021
1 parent dd7e63c commit f1231e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions frontend/src/components/styles/usersCarousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
.carousel-inner {
border-radius: 5px;
background-color: rgba(0, 0, 0, 0.247);
.carousel-item {
img {
height: 400px;
}
}
.carousel-caption {
padding: 0;
right: 0;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/tagsInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const TagsInput = ({ userId, editMode, isSearchForm, onHandleTags }) => {
const newTags = tags.slice(0);
const tag = newTags.splice(i, 1);
if (!tag[0]) return;
await deleteTag(tag[0].name);
if (!isSearchForm) await deleteTag(tag[0].name);
if (isSearchForm) {
const tagsStr = newTags
.map((tag) => {
Expand All @@ -48,7 +48,7 @@ const TagsInput = ({ userId, editMode, isSearchForm, onHandleTags }) => {

const handleAddition = async (tag) => {
const newTags = [].concat(tags, tag);
await createTag(tag.name);
if (!isSearchForm) await createTag(tag.name);
if (isSearchForm) {
const tagsStr = newTags
.map((tag) => {
Expand Down

0 comments on commit f1231e4

Please sign in to comment.