-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'url' of undefined #57
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the list pages, the description images come as files. Therefore, I think that "url" in the relevant lines in api.js file should be changed to "uri".
Application fails because "url" cannot be found.
lib/api.js
diff --git a/lib/api.js b/lib/api.js
index 9a3b9a6..034a62b 100644
--- a/lib/api.js
+++ b/lib/api.js
@@ -38,7 +38,7 @@ export function findAllPromotedRecipes(limit = 4) {
fields: {
recipes: 'title,difficulty,image',
images: 'name,thumbnail',
sort: '-created',
};
@@ -64,7 +64,7 @@ export function findAllLatestRecipes(limit = 4, offset = 0) {
fields: {
recipes: 'title,difficulty,image',
images: 'name,thumbnail',
};
return jsonApi.get('recipes', query);
@@ -89,7 +89,7 @@ export function findHomePromotedArticlesAndRecipes(limit) {
fields: {
recipes: 'contentType,title,difficulty,image',
images: 'name,thumbnail',
sort: '-created',
@@ -112,7 +112,7 @@ export function findHomePromotedArticlesAndRecipes(limit) {
fields: {
recipes: 'title,difficulty,image',
images: 'name,thumbnail',
sort: '-created',
@@ -146,7 +146,7 @@ export function findAllRecipesByCategoryName(
fields: {
recipes: 'title,difficulty,image',
images: 'name,thumbnail',
page: {
offset: 0,
@@ -173,7 +173,7 @@ export function findAllRecipesByDifficultyName(
fields: {
recipes: 'title,difficulty,image',
images: 'name,thumbnail',
page: {
offset: 0,
@@ -203,7 +203,7 @@ export function findAllRecipesByMaxTotalTime(
fields: {
recipes: 'title,difficulty,image',
images: 'name,thumbnail',
page: {
offset: 0,
The text was updated successfully, but these errors were encountered: