Skip to content

Commit

Permalink
dev(test-studio): update conditionalFields schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanwikner committed Aug 11, 2022
1 parent 16fcdda commit 6c7c288
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions dev/test-studio/schema/debug/conditionalFields.js
Expand Up @@ -200,20 +200,14 @@ export default {
{
name: 'predefinedStringArray',
title: 'Array of strings',
description: 'Some types in array are read-only',
type: 'array',
of: [
{
type: 'string',
readOnly: ({document}) => {
return Boolean(document.readOnly)
},
hidden: ({document}) => {
return Boolean(document.hidden)
},
},
{type: 'number'},
],
readOnly: ({document}) => {
return Boolean(document.readOnly)
},
hidden: ({document}) => {
return Boolean(document.hidden)
},
of: [{type: 'string'}, {type: 'number'}],
options: {
list: [
{title: 'Cats', value: 'cats4ever'},
Expand All @@ -226,6 +220,7 @@ export default {
name: 'arrayOfMultipleTypes',
title: 'Array of multiple types',
type: 'array',
readOnly: ({document}) => Boolean(document.readOnly),
of: [
{
type: 'image',
Expand Down

0 comments on commit 6c7c288

Please sign in to comment.