Skip to content

Commit

Permalink
fix: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
vhu-axelor committed Dec 10, 2024
1 parent 48b5cbc commit 1958b9a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/apps/dms/src/hooks/use-dms-header-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
import {useEffect} from 'react';
import {
headerActionsProvider,
useSelector,
useNavigation,
useTranslator,
usePermitted,
} from '@axelor/aos-mobile-core';
import {useThemeColor} from '@axelor/aos-mobile-ui';

Expand All @@ -34,11 +32,6 @@ const useAllDocumentsActions = () => {
const Colors = useThemeColor();
const navigation = useNavigation();
const I18n = useTranslator();
const {canCreate} = usePermitted({
modelName: 'com.axelor.apps.crm.db.Catalog',
});

const {crm: crmConfig} = useSelector((state: any) => state.appConfig);

useEffect(() => {
headerActionsProvider.registerModel('dms_all_documents', {
Expand All @@ -54,5 +47,5 @@ const useAllDocumentsActions = () => {
},
],
});
}, [Colors, I18n, navigation, crmConfig, canCreate]);
}, [Colors, I18n, navigation]);
};

0 comments on commit 1958b9a

Please sign in to comment.