File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/form/editForm Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ export default [
3030 tooltip : 'if it is checked, the subform is loaded after navigation to the page with this component within the wizard.' ,
3131 input : true ,
3232 customConditional ( { instance, data } ) {
33- const formInfo = instance . root ?. getComponent ( 'form' ) ?. defaultDownloadedResources . find ( res => res . _id === data . form ) ;
33+ const formComp = instance . root ?. getComponent ( 'form' ) ;
34+ const formInfo = formComp ?. defaultDownloadedResources . find ( res => res . _id === data . form ) ;
3435 const displayMode = 'wizard' ;
3536
36- return instance . options ?. editForm ?. display === displayMode && formInfo && formInfo . display !== displayMode ;
37+ return instance . options ?. editForm ?. display === displayMode && ( ( data . form && ! formInfo ) || ( formInfo && formInfo . display !== displayMode ) ) ;
3738 } ,
3839 } ,
3940 {
You can’t perform that action at this time.
0 commit comments