From 6f2a2a5a9eeb1e96b7d4e338da476b15a858139f Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sat, 16 Feb 2019 21:56:37 +0100 Subject: [PATCH] Fix broken promise --- src/utils/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/api.js b/src/utils/api.js index 6c0e30f..a112a24 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -3,7 +3,7 @@ import data from './data.json' export function getData (path = '') { if (path === '') { - return data + return Promise.resolve(data) } else { const fileName = '../../content/' + path return readFile(fileName)