update: modal for aspect management

This commit is contained in:
abiyasa05 2024-09-18 10:05:27 +07:00
parent 497e091db0
commit 39c1b7462a

View File

@ -124,7 +124,7 @@ export default function AspectFormModal() {
: "", : "",
}; };
await updateAspect(payload); await updateAspect(payload);
} }
queryClient.invalidateQueries({ queryKey: ["management-aspect"] }); queryClient.invalidateQueries({ queryKey: ["management-aspect"] });
@ -167,7 +167,9 @@ export default function AspectFormModal() {
}} }}
disabled={formType === "detail"} disabled={formType === "detail"}
/> />
<Text>Jumlah Soal: {field.questionCount}</Text> {formType === "detail" && (
<Text>Jumlah Soal: {field.questionCount}</Text>
)}
{formType !== "detail" && ( {formType !== "detail" && (
<Button <Button
variant="outline" variant="outline"