Merge pull request #6604 from igrowp/hot-fix

fix: 解决editor 报错 'getVariableOptions' of undefined
This commit is contained in:
igrowp 2023-04-18 20:01:28 +08:00 committed by GitHub
commit 123dbab9a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 [
{