Skip to content

Commit

Permalink
fix: start:OnDate:Date must be always set at begining
Browse files Browse the repository at this point in the history
  • Loading branch information
betocantu93 committed Jun 30, 2023
1 parent 76fe868 commit 44e7f52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ export default class RRuleGenerator extends Component<Signature> {
//eslint-disable-next-line
const rrule = computeRRuleToString(newData!);

//eslint-disable-next-line
console.log(rrule);

this.args.onChange?.(rrule);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { isEmpty, uniqueId } from 'lodash-es';
import computeRRuleToString from './computeRRule/toString/computeRRule';

import { Config } from 'ember-rrule-generator/components/r-rule-generator';
import dayjs from 'dayjs';

const configureState = (config: Config = {}, id) => {
const configureFrequency = () =>
Expand All @@ -28,6 +29,7 @@ const configureState = (config: Config = {}, id) => {
const data = {
start: {
onDate: {
date: dayjs().format('YYYY-MM-DD'),
options: {
weekStartsOnSunday: config.weekStartsOnSunday,
},
Expand Down

0 comments on commit 44e7f52

Please sign in to comment.