forked from mirrors/thatmattlove-hyperglass
Make error message copyable
This commit is contained in:
parent
8c4bf5fbc2
commit
13101b9e52
1 changed files with 4 additions and 0 deletions
|
|
@ -148,6 +148,10 @@ const Result = forwardRef(
|
|||
copyValue = tableToString(queryTarget, data, config);
|
||||
}
|
||||
|
||||
if (error) {
|
||||
copyValue = errorMsg;
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
!loading && resultsComplete === null && setComplete(index);
|
||||
}, [loading, resultsComplete]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue