Skip to content

Commit

Permalink
Fix save history selection banner
Browse files Browse the repository at this point in the history
  • Loading branch information
cayb0rg committed Jun 18, 2024
1 parent 5359ec0 commit 284ae09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/question-generator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ const QsetGenerator = () => {
build_off_existing: buildOffExisting,
successFunc: (qset) => {
let created_at = new Date().toISOString()
window.parent.Materia.Creator.onQsetReselectionComplete(JSON.stringify(qset), 1, created_at)
window.parent.Materia.Creator.onQsetReselectionComplete(
JSON.stringify(qset),
true, // is generated
1,
created_at
)
setLoading(false)
},
errorFunc: (err) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/question-history.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const QuestionHistory = () => {
if (id == save.id) {
return window.parent.Materia.Creator.onQsetReselectionComplete(
JSON.stringify(save.data),
false, // is generated
save.version,
save.created_at
)
Expand Down

0 comments on commit 284ae09

Please sign in to comment.