Diff only if paroles was published
This commit is contained in:
@@ -141,7 +141,7 @@ module.exports = {
|
||||
populate: {difference: true}
|
||||
})
|
||||
|
||||
if (data.transcription) {
|
||||
if (data.transcription && previousParoles.publishedAt) {
|
||||
const difference = strapi.service('api::parole.parole').parolesDiff(data.titre, previousParoles.transcription, data.transcription)
|
||||
|
||||
state.diff = difference
|
||||
|
||||
Reference in New Issue
Block a user