Fixed issue Unable to delete last tag from entity level tags #5280 and home page getting blank issue #5392 (#5393)

* Fixed issue Unable to delete last tag from entity level tags #5280

* resolving blank page issue

* miner fix

Co-authored-by: Vivek Ratnavel Subramanian <vivekratnavel90@gmail.com>
Co-authored-by: Sanket Shah <shahsank3t@users.noreply.github.com>
This commit is contained in:
Shailesh Parmar 2022-06-10 01:37:21 +05:30 committed by GitHub
parent 4886d9d4af
commit 5611ed7767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -5,5 +5,6 @@
"watchForFileChanges": false,
"baseUrl": "http://localhost:8585",
"defaultCommandTimeout": 5000,
"videoUploadOnPasses": false
"videoUploadOnPasses": false,
"chromeWebSecurity": false
}

View File

@ -74,6 +74,8 @@ const TagsContainer: FunctionComponent<TagsContainerProps> = ({
return updatedTags;
});
} else {
setTags([]);
}
};

View File

@ -328,15 +328,13 @@ export const getOwnerIds = (
if (filter === Ownership.OWNER) {
if (!isEmpty(userDetails)) {
return [
...(userDetails.teams?.map((team) => team.id) as Array<string>),
...(userDetails.teams?.map((team) => team.id) || []),
userDetails.id,
];
} else {
if (!isEmpty(nonSecureUserDetails)) {
return [
...(nonSecureUserDetails.teams?.map(
(team) => team.id
) as Array<string>),
...(nonSecureUserDetails.teams?.map((team) => team.id) || []),
nonSecureUserDetails.id,
];
} else {