Browse Source

Make dynamic components undroppable

pull/6419/head
mohamedsalem401 2 years ago
parent
commit
deb5a74a67
  1. 1
      packages/core/src/data_sources/model/ComponentDataVariable.ts
  2. 1
      packages/core/src/data_sources/model/conditional_variables/ComponentDataCondition.ts
  3. 1
      packages/core/src/data_sources/model/data_collection/ComponentDataCollectionVariable.ts

1
packages/core/src/data_sources/model/ComponentDataVariable.ts

@ -13,6 +13,7 @@ export default class ComponentDataVariable extends Component {
type: DataVariableType, type: DataVariableType,
path: '', path: '',
defaultValue: '', defaultValue: '',
droppable: false,
}; };
} }

1
packages/core/src/data_sources/model/conditional_variables/ComponentDataCondition.ts

@ -15,6 +15,7 @@ export default class ComponentDataCondition extends Component {
...props, ...props,
type: DataConditionType, type: DataConditionType,
components: dataConditionInstance.getDataValue(), components: dataConditionInstance.getDataValue(),
droppable: false,
}, },
opt, opt,
); );

1
packages/core/src/data_sources/model/data_collection/ComponentDataCollectionVariable.ts

@ -18,6 +18,7 @@ export default class ComponentDataCollectionVariable extends Component {
collectionId: undefined, collectionId: undefined,
variableType: undefined, variableType: undefined,
path: undefined, path: undefined,
droppable: false,
}; };
} }

Loading…
Cancel
Save