Skip to content

Commit

Permalink
Revert type arg to convert() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinar-24 committed Dec 18, 2019
1 parent e928264 commit 790dcd5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const getFormat: FormatFactory = mapping => {
},
};
// @ts-ignore
return format.convert(val, options);
return format.convert(val, undefined, options);
};
},
convert: (val: string, type: string) => {
Expand All @@ -164,7 +164,6 @@ export const getFormat: FormatFactory = mapping => {
}

const options = {
type,
parsedUrl: {
origin: window.location.origin,
pathname: window.location.pathname,
Expand All @@ -173,7 +172,7 @@ export const getFormat: FormatFactory = mapping => {
};

// @ts-ignore
return format.convert(val, options);
return format.convert(val, type, options);
},
} as FieldFormat;
} else {
Expand Down

0 comments on commit 790dcd5

Please sign in to comment.