Skip to content

Commit

Permalink
feat(ui): redirect to overview if no tag id is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mvegter committed Jun 3, 2020
1 parent 2f139b3 commit 53d6a6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/public/views/Tags/Details/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ const tagDetails = (model) => {
const data = model.tags.getTag();
const dataLogs = model.tags.getLogsOfTag();

if (!model.router.params.id) {
model.router.go('?page=tag-overview');
return;
}

if (!model.router.params.panel) {
model.router.go(targetURL(model, 'panel', 'PanelButton1'), true);
return;
Expand Down

0 comments on commit 53d6a6f

Please sign in to comment.