mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
Merge pull request #6604 from igrowp/hot-fix
fix: 解决editor 报错 'getVariableOptions' of undefined
This commit is contained in:
commit
123dbab9a3
@ -185,8 +185,8 @@ export const SUPPORT_DISABLED_CMPTS = [
|
||||
export const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
const variableManager = manager?.variableManager;
|
||||
/** 变量列表 */
|
||||
const variableOptions = variableManager.getVariableOptions();
|
||||
const pageVariableOptions = variableManager.getPageVariablesOptions();
|
||||
const variableOptions = variableManager?.getVariableOptions() || [];
|
||||
const pageVariableOptions = variableManager?.getPageVariablesOptions() || [];
|
||||
|
||||
return [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user