Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/edit/event/EventDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class EventDialog extends Component {
}

// Set default dates
if (!backupPeriodsDates) {
if (!hasDate && !backupPeriodsDates) {
const defaultDates = getDefaultDatesInCalendar()
setStartDate(defaultDates.startDate)
setEndDate(defaultDates.endDate)
Expand Down
1 change: 1 addition & 0 deletions src/components/edit/thematic/ThematicDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const ThematicDialog = ({
orgUnits,
systemSettings,
syncFromOtherLayers,
shouldSyncFromOtherLayers,
})
)
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down
2 changes: 2 additions & 0 deletions src/components/edit/thematic/initializeThematicLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const initializePeriods = (
defaultRenderingStrategy,
systemSettings,
syncFromOtherLayers,
shouldSyncFromOtherLayers,
}
) => {
if (filters || (startDate !== undefined && endDate !== undefined)) {
Expand All @@ -76,6 +77,7 @@ const initializePeriods = (
const defaultPeriods = getDefaultPeriods(systemSettings)

if (
shouldSyncFromOtherLayers &&
syncFromOtherLayers({
renderingStrategy: renderingStrategy || defaultRenderingStrategy,
})
Expand Down
Loading