MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / isPathEqual

Function isPathEqual

web/pgadmin/static/js/SchemaView/hooks/useFieldError.js:13–18  ·  view source on GitHub ↗
(path1, path2)

Source from the content-addressed store, hash-verified

11
12const convertKeysToString = (arr) => (arr||[]).map((key) => String(key));
13const isPathEqual = (path1, path2) => (
14 Array.isArray(path1) &&
15 Array.isArray(path2) &&
16 JSON.stringify(convertKeysToString(path1)) ===
17 JSON.stringify(convertKeysToString(path2))
18);
19
20export const useFieldError = (path, schemaState, subscriberManager) => {
21

Callers 2

checkPathErrorFunction · 0.85
useFieldErrorFunction · 0.85

Calls 1

convertKeysToStringFunction · 0.85

Tested by

no test coverage detected