Skip to content

Commit

Permalink
fix: input output schema diff logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmiletic committed Jan 10, 2025
1 parent f120f53 commit e24aaf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const inputSpecification: NodeSpecification<NodeInputData> = {
getDiffContent: (current, previous): any => {
const fields: DiffMetadata['fields'] = {};
return produce(current || {}, (draft) => {
if (current?.schema !== previous?.schema) {
if ((current?.schema || '')?.trim?.() !== (previous?.schema || '')?.trim?.()) {
_.set(fields, 'schema', {
previousValue: previous?.schema || '',
status: 'modified',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const outputSpecification: NodeSpecification<NodeOutputData> = {
getDiffContent: (current, previous): any => {
const fields: DiffMetadata['fields'] = {};
return produce(current || {}, (draft) => {
if (current?.schema !== previous?.schema) {
if ((current?.schema || '')?.trim?.() !== (previous?.schema || '')?.trim?.()) {
_.set(fields, 'schema', {
previousValue: previous?.schema || '',
status: 'modified',
Expand Down

0 comments on commit e24aaf7

Please sign in to comment.