Skip to content

Commit

Permalink
feat: surface indexing errors (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored Jun 5, 2023
1 parent a614b3d commit a071a03
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions react/src/LID.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ function PiecesWithPayload({payloadCid, pieceCids, setSearchQuery}) {

function PieceStatus({pieceCid, pieceStatus, searchQuery}) {
// Re-build index
const [buildIndex] = useMutation(PieceBuildIndexMutation, {
const [buildIndex, buildIndexResp] = useMutation(PieceBuildIndexMutation, {
// refetchQueries: props.refetchQueries,
variables: {pieceCid: pieceCid}
})
Expand Down Expand Up @@ -607,8 +607,11 @@ function PieceStatus({pieceCid, pieceStatus, searchQuery}) {
</span>
<br/>
{canReIndex ? (
<div className="button build-index" title="Re-build index" onClick={buildIndex}>
Re-index
<div>
<div className="button build-index" title="Re-build index" onClick={buildIndex}>
Re-index
</div>
{buildIndexResp.error ? <div>{buildIndexResp.error + ''}</div> : null}
</div>
) : null}
</td>
Expand Down

0 comments on commit a071a03

Please sign in to comment.