Skip to content

Commit

Permalink
Handling records without permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
psguazz committed Mar 13, 2024
1 parent 8ca65cd commit 909a9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dato_cms_graphql/rails/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.persist_record(query, record)
)
.update(
render: query.render?,
permalink: record.permalink,
permalink: (record.permalink if record.respond_to?(:permalink)),
cms_record: record.localized_raw_attributes
)
end
Expand Down

0 comments on commit 909a9ef

Please sign in to comment.