Added various conditions to prevent errors and warnings.

This commit is contained in:
DebaucheryLibrarian
2021-03-04 02:35:43 +01:00
parent 0c98df232e
commit fa30fe5169
7 changed files with 37 additions and 14 deletions

View File

@@ -13,6 +13,10 @@ function initActorActions(store, router) {
pageNumber = 1,
range = 'latest',
}) {
if (!actorId) {
return null;
}
const { before, after, orderBy } = getDateRange(range);
const includedTags = router.currentRoute.value.query.tags ? router.currentRoute.value.query.tags.split(',') : [];
const mode = router.currentRoute.value.query.mode || 'all';