@patternfly/quickstarts 5.4.3 → 5.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2370,7 +2370,10 @@ const QuickStartContainer = (_a) => {
2370
2370
  const QuickStartDrawer = (_a) => {
2371
2371
  var { quickStarts = [], children, appendTo, fullWidth, onCloseInProgress, onCloseNotInProgress } = _a, props = tslib.__rest(_a, ["quickStarts", "children", "appendTo", "fullWidth", "onCloseInProgress", "onCloseNotInProgress"]);
2372
2372
  const { activeQuickStartID, setActiveQuickStart, allQuickStarts = [], activeQuickStartState, allQuickStartStates, setAllQuickStartStates, useLegacyHeaderColors, } = React__namespace.useContext(QuickStartContext);
2373
- const combinedQuickStarts = allQuickStarts.concat(quickStarts);
2373
+ const combinedQuickStarts = [
2374
+ ...allQuickStarts,
2375
+ ...quickStarts,
2376
+ ].filter((qs, idx, arr) => arr.findIndex(q => q.metadata.name === qs.metadata.name) === idx);
2374
2377
  React__namespace.useEffect(() => {
2375
2378
  const params = new URLSearchParams(window.location.search);
2376
2379
  // if there is a quick start param, but the quick start is not active, set it