Skip to content

Commit 168fc1a

Browse files
author
Alex Patterson
committed
remove stega from content blocks
1 parent 541dbfa commit 168fc1a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎sanity/lib/client.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ export const client = createClient({
1313
// logger: console,
1414
filter: (props) => {
1515
const type = props.sourcePath.at(0) as string;
16-
if (!["content"].includes(type)) {
16+
const block = props.sourcePath.at(-1) as string;
17+
// If it is content but not of specified types
18+
if (!["content"].includes(type) || ["public_id", "secure_url"].includes(block)) {
1719
return false;
18-
} else {
19-
return props.filterDefault(props);
2020
}
21+
return props.filterDefault(props);
2122
},
2223
},
2324
});

0 commit comments

Comments
 (0)