Skip to content

Commit

Permalink
[desk-tool] Fix slug diff not rendering unless changed
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 88408c5 commit 07b2885
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface Slug {
export const SlugFieldDiff: DiffComponent<ObjectDiff<Annotation>> = ({diff, schemaType}) => {
const currentField = schemaType.fields?.find(field => field.name === 'current')
const currentDiff = diff.fields.current
if (!currentField || currentDiff?.action !== 'changed' || currentDiff?.type !== 'string') {
if (!currentField || currentDiff?.type !== 'string') {
return null
}

Expand Down

0 comments on commit 07b2885

Please sign in to comment.