Skip to content

Commit

Permalink
fix: add default value for create schedule schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 committed Feb 28, 2024
1 parent 655cce1 commit 4bd16cb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/SaveScheduleButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ const handleSave = () => {
const end = `2024/03/0${day} ${endTime}`;
const detail = JSON.stringify({
id: id,
name: name,
activity: activity,
project:project,
description: description,
date: date,
startTime: startTime,
endTime: endTime,
host: host,
location: location,
link: link,
name: name || "default_name",
activity: activity || "default_activity",
project:project || "default_project",
description: description || "default_description",
date: date || "default_date",
startTime: startTime || "default_startTime",
endTime: endTime || "default_endTime",
host: host || "default_host",
location: location || "default_location",
link: link || "default_link",
});
eventStore.subscribeEvent(id, start, end, detail, name);
};
Expand Down

0 comments on commit 4bd16cb

Please sign in to comment.