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