Skip to content

Commit

Permalink
Fix hardcoded cloudType
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed May 22, 2024
1 parent 007f4ef commit 9521629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/event-format-component/event-format-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function decorateCloudTagSelect(column) {
select.append(option);

// FIXME: use correct data source rather than hardcoded values.
['Creative Cloud', 'DX'].forEach((bu) => {
['CreativeCloud', 'DX'].forEach((bu) => {
const opt = createTag('option', { value: bu }, bu);
select.append(opt);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function onResume(component, eventObj) {

export function onSubmit(component, props) {
const eventType = 'InPerson';
const cloudType = 'CreativeCloud' || component.querySelector('#bu-select-input').value;
const cloudType = component.querySelector('#bu-select-input').value;
const seriesId = component.querySelector('#series-select-input').value;
const rsvpRequired = component.querySelector('#rsvp-required-check').checked;

Expand Down

0 comments on commit 9521629

Please sign in to comment.