feat: changed get time logic to approvers
This commit is contained in:
@@ -57,9 +57,11 @@ const SubmitFeature: React.FC<ISubmitFeatureProps> = ({
|
||||
// если правки есть и они не сохранены; после согласия флаг снимаем — терять
|
||||
// уже нечего.
|
||||
const handleBack = (): void => {
|
||||
if (!confirmDiscardFormChanges()) return;
|
||||
markFormClean();
|
||||
setSelectedRequest(null);
|
||||
confirmDiscardFormChanges().then((ok) => {
|
||||
if (!ok) return;
|
||||
markFormClean();
|
||||
setSelectedRequest(null);
|
||||
}).catch(() => undefined);
|
||||
};
|
||||
|
||||
const renderSelected = (request: IRequestType): React.ReactNode => {
|
||||
|
||||
Reference in New Issue
Block a user