mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-04-22 15:58:40 +00:00
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);
|
copyValue = tableToString(queryTarget, data, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
copyValue = errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
!loading && resultsComplete === null && setComplete(index);
|
!loading && resultsComplete === null && setComplete(index);
|
||||||
}, [loading, resultsComplete]);
|
}, [loading, resultsComplete]);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue