Skip to content

Commit

Permalink
fix: resolves #1007
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Jan 16, 2024
1 parent 0776172 commit cb4cb0f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions resources/js/Pages/Publish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -962,18 +962,20 @@ export default {
}
if (this.publishForm.tag && this.publishForm.tag != "") {
let exists = false;
this.publishForm.tags.forEach((t) => {
if (t.text == this.publishForm.tag) {
exists = true;
this.publishForm.tag.split(",").forEach((_t) => {
let exists = false;
this.publishForm.tags.forEach((t) => {
if (t.text == _t) {
exists = true;
}
});
if (!exists) {
this.publishForm.tags.push({
text: _t,
});
}
});
if (!exists) {
this.publishForm.tags.push({
text: this.publishForm.tag,
});
this.publishForm.tag = "";
}
this.publishForm.tag = "";
}
this.loadingStep = true;
Expand Down

0 comments on commit cb4cb0f

Please sign in to comment.