rtk-query-monitor

This commit is contained in:
Nathan Bierema 2024-08-04 19:56:25 -04:00
parent ab525dfc2e
commit 842c2bbabf

View File

@ -45,8 +45,7 @@ function getText(
isDiff: boolean | undefined, isDiff: boolean | undefined,
) { ) {
if (type === 'Object') { if (type === 'Object') {
// eslint-disable-next-line @typescript-eslint/ban-types const keys = Object.keys(data as object);
const keys = Object.keys(data as {});
if (!previewContent) return keys.length ? '{…}' : '{}'; if (!previewContent) return keys.length ? '{…}' : '{}';
const str = keys const str = keys