add explicit message display for 'Fetching Annotation Layer' error (#3631)

This commit is contained in:
Grace Guo
2017-10-10 11:49:53 -07:00
committed by Maxime Beauchemin
parent b866b33dee
commit bd45e3b19a
3 changed files with 15 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ const SelectAsyncControl = ({ value, onChange, dataEndpoint,
<Select
dataEndpoint={dataEndpoint}
onChange={onSelectionChange}
onAsyncError={() => notify.error(onAsyncErrorMessage)}
onAsyncError={errorMsg => notify.error(onAsyncErrorMessage + ': ' + errorMsg)}
mutator={mutator}
multi={multi}
value={value}