Skip to content

Commit

Permalink
Merge pull request #642 from episphere/fix-missing-id
Browse files Browse the repository at this point in the history
Fix missing schema ID
  • Loading branch information
we-ai authored Apr 16, 2024
2 parents 7f2744b + e88dc03 commit 7b714d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion siteManagerDashboard/notifications/storeNotifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ const handleFormSubmit = () => {
const form = document.getElementById("configForm");
form.addEventListener("submit", async (e) => {
e.preventDefault();
const hasSchemaId = !!appState.getState().notification?.savedSchema?.id;
let schema = {};
schema.id = appState.getState().notification?.savedSchema?.id ?? "";
const hasSchemaId = schema.id.length > 0;
schema.isDraft = e.submitter.dataset.draft === "true";
schema["attempt"] = document.getElementById("attempt").value.trim();
schema["description"] = document.getElementById("description").value.trim();
Expand Down

0 comments on commit 7b714d0

Please sign in to comment.