mirror of
https://github.com/WebBreacher/WhatsMyName.git
synced 2025-06-18 14:25:31 -04:00
keyOrder change
This commit is contained in:
parent
01ca32d020
commit
7f2effc01a
2
.github/workflows/sort-format-json.yml
vendored
2
.github/workflows/sort-format-json.yml
vendored
@ -48,7 +48,7 @@ jobs:
|
||||
|
||||
// ---------- Extract Schema Key Order ----------
|
||||
const siteSchema = schema.properties?.sites?.items;
|
||||
const keyOrder = Array.isArray(siteSchema?.required) ? siteSchema.required : [];
|
||||
const keyOrder = siteSchema?.properties ? Object.keys(siteSchema.properties) : [];
|
||||
|
||||
// ---------- Sort authors and categories ----------
|
||||
if (Array.isArray(data.authors)) {
|
||||
|
Loading…
Reference in New Issue
Block a user