mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
workign on file upload
This commit is contained in:
@@ -18,6 +18,7 @@ export default function AssignmentPreview({
|
||||
(sum, cur) => (rubricItemIsExtraCredit(cur) ? sum + cur.points : sum),
|
||||
0
|
||||
);
|
||||
const htmlPreview = markdownToHTMLSafe(assignment.description, settings);
|
||||
return (
|
||||
<div className="h-full overflow-y-auto">
|
||||
<section>
|
||||
@@ -61,7 +62,7 @@ export default function AssignmentPreview({
|
||||
<div
|
||||
className="markdownPreview"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: markdownToHTMLSafe(assignment.description, settings),
|
||||
__html: htmlPreview,
|
||||
}}
|
||||
></div>
|
||||
</section>
|
||||
|
||||
@@ -83,21 +83,6 @@ export default function EditAssignment({
|
||||
previousAssignmentName: assignmentName,
|
||||
courseName,
|
||||
});
|
||||
// .then(async () => {
|
||||
// // await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
|
||||
// if (updatedAssignment.name !== assignmentName)
|
||||
// router.replace(
|
||||
// getModuleItemUrl(
|
||||
// courseName,
|
||||
// moduleName,
|
||||
// "assignment",
|
||||
// updatedAssignment.name
|
||||
// ), {
|
||||
|
||||
// }
|
||||
// );
|
||||
// });
|
||||
} else {
|
||||
console.log(
|
||||
"client not authoritative, updating client with server assignment",
|
||||
|
||||
Reference in New Issue
Block a user