diff --git a/src/controls/filePicker/LinkFilePickerTab/LinkFilePickerTab.tsx b/src/controls/filePicker/LinkFilePickerTab/LinkFilePickerTab.tsx index d037cb8ed..cc707c005 100644 --- a/src/controls/filePicker/LinkFilePickerTab/LinkFilePickerTab.tsx +++ b/src/controls/filePicker/LinkFilePickerTab/LinkFilePickerTab.tsx @@ -34,7 +34,6 @@ export default class LinkFilePickerTab extends React.Component this._getErrorMessagePromise(value)} autoAdjustHeight={false} underlined={false} @@ -64,7 +63,7 @@ export default class LinkFilePickerTab extends React.Component { - const filePickerResult: IFilePickerResult = fileUrl && this._isUrl(fileUrl) ? { + const filePickerResult: IFilePickerResult = fileUrl ? { fileAbsoluteUrl: fileUrl, fileName: GeneralHelper.getFileNameFromUrl(fileUrl), fileNameWithoutExtension: GeneralHelper.getFileNameWithoutExtension(fileUrl), @@ -81,7 +80,7 @@ export default class LinkFilePickerTab extends React.Component => { // DOn't give an error for blank or placeholder value, but don't make it a valid entry either - if (value === undefined || value === 'https://') { + if (value === undefined || value === '') { this.setState({ isValid: false }); return ''; } @@ -89,7 +88,7 @@ export default class LinkFilePickerTab extends React.Component