fix navigation in post focus
This commit is contained in:
parent
ce1dfc388f
commit
6c19a4f3c9
4 changed files with 10 additions and 7 deletions
|
@ -18,9 +18,8 @@
|
|||
|
||||
let post_context = undefined;
|
||||
let post = post_data;
|
||||
let is_boost = false;
|
||||
if (post_data.boost) {
|
||||
is_boost = true;
|
||||
let is_boost = !!post_data.boost;
|
||||
if (is_boost) {
|
||||
post_context = post_data;
|
||||
post = post_data.boost;
|
||||
}
|
||||
|
@ -28,6 +27,7 @@
|
|||
function gotoPost() {
|
||||
if (focused) return;
|
||||
if (event.key && event.key !== "Enter") return;
|
||||
console.log(`/post/${post.id}`);
|
||||
goto(`/post/${post.id}`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue