Bug fix, most recent post would not show in the post's permalink due to
an indexing bug, pretty simple fix, I'm just a moron.
This commit is contained in:
@@ -49,7 +49,7 @@ export function getdata(data, index=-1) {
|
||||
if (data == "posts" || data == 'users' || data == 'comments') {
|
||||
let result = func.require_module(`../data/${data}.json`)
|
||||
if (index != -1) {
|
||||
if (index < result.length-1) {
|
||||
if (index < result.length) {
|
||||
return result[index]
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user