File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
gatsby-wordpress-theme-libre Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -155,14 +155,13 @@ exports.createResolvers = async ({
155155 const wordPressSetting = context . nodeModel . getAllNodes ( {
156156 type : `wordpress__wp_settings` ,
157157 } ) ;
158- title = metadata [ 0 ] . name
159- ? metadata [ 0 ] . name
160- : wordPressSetting [ 0 ] . title ;
161- description = metadata [ 0 ] . description
162- ? metadata [ 0 ] . description
163- : wordPressSetting [ 0 ] . description ;
164-
158+ if ( metadata && metadata . length > 0 ) {
159+ title = metadata [ 0 ] . name ;
160+ description = metadata [ 0 ] . description ;
161+ }
165162 if ( wordPressSetting && wordPressSetting . length > 0 ) {
163+ title = wordPressSetting [ 0 ] . title ;
164+ description = wordPressSetting [ 0 ] . description ;
166165 language = wordPressSetting [ 0 ] . language ;
167166 } else {
168167 try {
Original file line number Diff line number Diff line change 11{
22 "name" : " @draftbox-co/gatsby-wordpress-theme-libre" ,
3- "version" : " 1.0.24 " ,
3+ "version" : " 1.0.25 " ,
44 "license" : " MIT" ,
55 "resolutions" : {
66 "sharp" : " 0.23.4"
You can’t perform that action at this time.
0 commit comments