Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Salam-Dalloul committed Dec 16, 2024
2 parents da762f4 + d9ec15b commit 514a0a0
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, {useEffect, useState} from "react";
import Box from "@mui/material/Box";
import Paper from "@mui/material/Paper";
import Grid from "@mui/material/Grid";
Expand Down Expand Up @@ -32,12 +32,16 @@ const TriageStatementSection = (props: any) => {
const onCloneStatement = (id: number) =>{
statementService.clone(id).then(()=>refreshSentence())
}

statementService.getObject(statement.id).then((response: any) => {
if (response.state === statementStates.Exported || response.state === statementStates.Invalid) {
setIsDisabled(true);

useEffect(() => {
if (statement.id) {
statementService.getObject(statement.id).then((response: any) => {
if (response.state === statementStates.Exported || response.state === statementStates.Invalid) {
setIsDisabled(true);
}
});
}
});
}, [statement.id]);

return (
<Grid item xs={12}>
Expand Down

0 comments on commit 514a0a0

Please sign in to comment.