fix(amis-saas-8381): select数据配置面板问题修正

Change-Id: I47acd8a76dd77e8222ec2642035b1660bb8f151d
This commit is contained in:
wibetter 2022-11-28 15:59:41 +08:00
parent 467c9dd3c6
commit 8a87d27ab9

View File

@ -59,7 +59,7 @@ export default class OptionControl extends React.Component<
let source: 'custom' | 'api' | 'apicenter' = 'custom';
if (props.data.source) {
if (props.data.hasOwnProperty('source') && props.data.source) {
const api = props.data.source;
const url =
typeof api === 'string'
@ -796,7 +796,7 @@ export default class OptionControl extends React.Component<
</div>
) : null}
{this.renderApiPanel()}
{(source === 'api' || source === 'apicenter') && this.renderApiPanel()}
</div>
);
}