Skip to content

Commit

Permalink
Merge branch 'release/4.1.5'
Browse files Browse the repository at this point in the history
* release/4.1.5:
  Fix for #439
  • Loading branch information
austintoddj committed Mar 1, 2019
2 parents ac69b13 + 65f687b commit 4e71ecc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/js/app.js": "/js/app.js?id=5bbb9283dc01ec0b61be",
"/js/app.js": "/js/app.js?id=c09314617cfd4bbabf34",
"/css/app.css": "/css/app.css?id=f13a10a1564f49e2b5f0",
"/js/app.js.map": "/js/app.js.map?id=7c7b67d101e75b9a8a40",
"/js/app.js.map": "/js/app.js.map?id=6bb04d2ec806545765cc",
"/favicon.png": "/favicon.png?id=39d853e8c2bdbc38fde3"
}
8 changes: 6 additions & 2 deletions resources/js/components/TopicSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@
}
},
addTopic(searchQuery, id) {
addTopic(searchQuery) {
const topic = {
name: searchQuery,
slug: this.slugify(searchQuery)
};
this.options.push(topic);
this.value.push(topic);
this.value = {
name: topic.name,
slug: topic.slug
};
},
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function store(): RedirectResponse

if (! is_null(request('topic'))) {
$post->topic()->sync(
$this->assignTopics(request('topic') ?? [])
$this->assignTopics([request('topic')] ?? [])
);
}

Expand Down

0 comments on commit 4e71ecc

Please sign in to comment.