Skip to content

Commit

Permalink
reset notes (#410)
Browse files Browse the repository at this point in the history
* resetn notes

* setting resetting the notes

* testing

* add reset to the notes

* reset the array to 0

* include a note about no notes

* add no notes notification

* testing notice

* log issues

* reset set to an enpty array when no notes are present in the model
  • Loading branch information
OlegMoshkovich committed Sep 27, 2022
1 parent 1fe1493 commit 338374e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/IssuesControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export function Issues() {
})
if (issuesArr.length > 0) {
setIssues(issuesArr)
} else {
setIssues([])
}
} catch (e) {
debug().warn('failed to fetch issues', e)
Expand Down

0 comments on commit 338374e

Please sign in to comment.