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 { useFeatureArchiveApi } from '../../../hooks/api/actions/useFeatureArchiveApi/useReviveFeatureApi';
|
||||
import useToast from '../../../hooks/useToast';
|
||||
import {formatUnknownError} from "../../../utils/formatUnknownError";
|
||||
|
||||
export interface IFeaturesArchiveTableProps {
|
||||
archivedFeatures: FeatureSchema[];
|
||||
@ -78,8 +79,8 @@ export const ArchiveTable = ({
|
||||
text: 'The feature toggle has been revived.',
|
||||
confetti: true,
|
||||
});
|
||||
} catch (e: any) {
|
||||
setToastApiError(e.toString());
|
||||
} catch (e: unknown) {
|
||||
setToastApiError(formatUnknownError(e));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user