mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
Fix PR comments
This commit is contained in:
parent
63f147b492
commit
fa0c32a478
@ -38,6 +38,7 @@ import theme from 'themes/theme';
|
|||||||
import { FeatureSchema } from '../../../openapi';
|
import { FeatureSchema } from '../../../openapi';
|
||||||
import { useFeatureArchiveApi } from '../../../hooks/api/actions/useFeatureArchiveApi/useReviveFeatureApi';
|
import { useFeatureArchiveApi } from '../../../hooks/api/actions/useFeatureArchiveApi/useReviveFeatureApi';
|
||||||
import useToast from '../../../hooks/useToast';
|
import useToast from '../../../hooks/useToast';
|
||||||
|
import {formatUnknownError} from "../../../utils/formatUnknownError";
|
||||||
|
|
||||||
export interface IFeaturesArchiveTableProps {
|
export interface IFeaturesArchiveTableProps {
|
||||||
archivedFeatures: FeatureSchema[];
|
archivedFeatures: FeatureSchema[];
|
||||||
@ -78,8 +79,8 @@ export const ArchiveTable = ({
|
|||||||
text: 'The feature toggle has been revived.',
|
text: 'The feature toggle has been revived.',
|
||||||
confetti: true,
|
confetti: true,
|
||||||
});
|
});
|
||||||
} catch (e: any) {
|
} catch (e: unknown) {
|
||||||
setToastApiError(e.toString());
|
setToastApiError(formatUnknownError(e));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user