Use title of previous and next if no i18n

This commit is contained in:
Joel Marcey 2017-10-24 16:42:31 -07:00
parent 78bd09dec3
commit 429ffda351

View file

@ -68,7 +68,7 @@ class DocsLayout extends React.Component {
"localized-strings"
]["previous"] ||
"Previous"
: metadata.previous_id || "Previous"
: metadata[metadata.previous_id].title || "Previous"
}
</a>
)}
@ -84,7 +84,7 @@ class DocsLayout extends React.Component {
"localized-strings"
]["next"] ||
"Next"
: metadata.next_id || "Next"
: metadata[metadata.next_id].title || "Next"
}{" "}
</a>