🐛 Fix ESLint errors in PostmanTable.js
- Remove unused useMemo import - Remove unused selectedRowIndex state - Remove unused isComplexValue function - Fix CI deployment build failure
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
import React, { useState, useMemo } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { ChevronLeft, Braces, List, Type, Hash, ToggleLeft, Minus } from 'lucide-react';
|
import { ChevronLeft, Braces, List, Type, Hash, ToggleLeft, Minus } from 'lucide-react';
|
||||||
|
|
||||||
const PostmanTable = ({ data, title = "JSON Data" }) => {
|
const PostmanTable = ({ data, title = "JSON Data" }) => {
|
||||||
const [currentPath, setCurrentPath] = useState([]);
|
const [currentPath, setCurrentPath] = useState([]);
|
||||||
const [selectedRowIndex, setSelectedRowIndex] = useState(null);
|
|
||||||
|
|
||||||
// Get current data based on path
|
// Get current data based on path
|
||||||
const getCurrentData = () => {
|
const getCurrentData = () => {
|
||||||
@@ -158,10 +157,6 @@ const PostmanTable = ({ data, title = "JSON Data" }) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check if value is a complex object (not a primitive)
|
|
||||||
const isComplexValue = (value) => {
|
|
||||||
return value !== null && typeof value === 'object';
|
|
||||||
};
|
|
||||||
|
|
||||||
// Render value with appropriate styling
|
// Render value with appropriate styling
|
||||||
const renderValue = (value) => {
|
const renderValue = (value) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user