mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
fix broken test
This commit is contained in:
@@ -6,8 +6,11 @@ export function canOpenWithOffice(
|
||||
context: RuleContext,
|
||||
...args: RuleParameter[]
|
||||
): boolean {
|
||||
const { url } = context.navigation;
|
||||
if (url && url.startsWith('/trashcan')) {
|
||||
if (
|
||||
context.navigation &&
|
||||
context.navigation.url &&
|
||||
context.navigation.url.startsWith('/trashcan')
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user