@olea-bps/views 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -148,7 +148,7 @@ function TimetableViewList(props) {
148
148
  [theme]
149
149
  )
150
150
 
151
- const otherCourses = courses[undefined];
151
+ const otherCourses = courses?.[undefined] ?? [];
152
152
  const activeTabDate = daysTabViewRoutes[daysTabViewActiveRouteIndex]?.date;
153
153
  const activeTabWeek = activeTabDate.weekNumber;
154
154
 
@@ -232,7 +232,7 @@ function TimetableViewList(props) {
232
232
  inactiveColor={themeStyles.tabs.inactiveColor}
233
233
  indicatorStyle={themeStyles.tabIndicator}
234
234
  tabStyle={{ width: 'auto', paddingHorizontal: 20 }}
235
- renderTabBarItem={({ route, navigationState, ...rest}) =>
235
+ renderTabBarItem={({ route, navigationState, ...rest }) =>
236
236
  <TabBarItem
237
237
  {...rest}
238
238
  key={route.key}
@@ -243,7 +243,7 @@ function TimetableViewList(props) {
243
243
  inactiveColor={themeStyles.tabs.inactiveColor}
244
244
  // Die einbindung von moment.js zum Anzeigen des Wochentages sollte langfristig entfernt werden.
245
245
  // Funktioniert die Luxon funktionalität der Wochenanzeige nicht unter iOS datetime.toFormat('ccc')
246
- label={
246
+ label={
247
247
  // Generieren das Tab-Textes
248
248
  ({ route }) => {
249
249
  // Datumsobject aus dem Tab holen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olea-bps/views",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Consolidated views for OLEA",
5
5
  "main": "index.js",
6
6
  "repository": {