File tree Expand file tree Collapse file tree 4 files changed +9002
-7744
lines changed
Expand file tree Collapse file tree 4 files changed +9002
-7744
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import { getTranslation } from '../utils/getTranslation';
1818import Illo from '../components/Calendar/Illo' ;
1919import { useSettings } from '../context/Settings' ;
2020import pluginPermissions from '../permissions' ;
21- import getToken from '../utils/getToken' ;
2221
2322const CalendarPage = ( ) => {
2423 const theme = useTheme ( ) ;
@@ -159,14 +158,10 @@ const CalendarPage = () => {
159158 * ensuring that only content visible to the user is displayed on the calendar.
160159 */
161160 if ( settings . contentManager ) {
162- const token = getToken ( ) ;
163161 const startFilter = `filters[$and][0][${ settings . startField } ][$gte]` ;
164162 const endFilter = `filters[$and][1][${ settings . endField } ][$lte]` ;
165163
166164 const data = await get ( `/content-manager/collection-types/${ settings . collection } ` , {
167- headers : {
168- Authorization : `Bearer ${ token } ` ,
169- } ,
170165 params : {
171166 page : 1 ,
172167 pageSize : 10_000 ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments