Skip to content

Commit

Permalink
[3763] Deactivate the multi-selection. A dedicated PR will come
Browse files Browse the repository at this point in the history
Bug: #3763
Signed-off-by: Florian Barbin <[email protected]>
  • Loading branch information
florianbarbin committed Aug 29, 2024
1 parent 1276c5b commit 61b2c24
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const SelectionDialog = ({
treeId={`selection://?treeDescriptionId=${encodeURIComponent(
state.treeDescriptionId
)}&targetObjectId=${encodeURIComponent(targetObjectId)}`}
enableMultiSelection={true}
enableMultiSelection={false}
synchronizedWithSelection={true}
activeFilterIds={[]}
textToFilter={''}
Expand Down Expand Up @@ -102,8 +102,8 @@ export const SelectionDialog = ({
color="primary"
onClick={() => {
if (state.selectedObjects.length > 0) {
var selectedObjectId = state.selectedObjects.map((selectedObject) => selectedObject.id).join(',') ?? '';
onFinish([{ name: 'selectedObjects', value: selectedObjectId, type: 'OBJECT_ID_ARRAY' }]);
var selectedObjectId = state.selectedObjects[0]?.id ?? '';
onFinish([{ name: 'selectedObject', value: selectedObjectId, type: 'OBJECT_ID' }]);
}
}}>
Finish
Expand Down

0 comments on commit 61b2c24

Please sign in to comment.