Skip to content

Commit

Permalink
bump max slideshow to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges-GNM committed Jan 20, 2025
1 parent 9e1273b commit f01901d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions fronts-client/src/util/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import compact from 'lodash/compact';
import clamp from 'lodash/clamp';
import pickBy from 'lodash/pickBy';
import { isDirty } from 'redux-form';
import pageConfig from 'util/extractConfigFromPage';
// import pageConfig from 'util/extractConfigFromPage';
import { CardMeta, ImageData } from 'types/Collection';
import { DerivedArticle } from 'types/Article';
import { CapiArticle } from 'types/Capi';
Expand Down Expand Up @@ -78,11 +78,14 @@ export const getCapiValuesForArticleFields = (
};
};

const tenImagesFeatureSwitch = pageConfig?.userData?.featureSwitches.find(
(feature) => feature.key === 'ten-image-slideshows',
);
// const tenImagesFeatureSwitch = pageConfig?.userData?.featureSwitches.find(
// (feature) => feature.key === 'ten-image-slideshows',
// );

export const maxSlideshowImages = tenImagesFeatureSwitch?.enabled ? 10 : 5;
// export const maxSlideshowImages = tenImagesFeatureSwitch?.enabled ? 10 : 5;

//bypasses the feature switch to temporarily ensure anyone can add 10 images to a slideshow
export const maxSlideshowImages = 10;

export const getInitialValuesForCardForm = (
article: DerivedArticle | void,
Expand Down

0 comments on commit f01901d

Please sign in to comment.