Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Fall back to "intent" when operation "id" is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
LL782 committed Oct 4, 2024
1 parent b1244bb commit 6efd94e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions developer-preview/src/app/SelectOperation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const SelectOperation = ({
setSelectedOperation(selection);
};

const items = data.operations.map(({ id }) => ({
value: id,
label: id,
const items = data.operations.map(({ id, intent }) => ({
value: id || intent,
label: id || intent,
}));

const value = items.some(({ value }) => value === selectedOperation)
Expand Down

0 comments on commit 6efd94e

Please sign in to comment.