@patternfly/quickstarts 6.3.0-prerelease.4 → 6.3.0-prerelease.6

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.es.js CHANGED
@@ -2007,7 +2007,10 @@ const QuickStartPanelContent = (_a) => {
2007
2007
  const QuickStartDrawerContent = (_a) => {
2008
2008
  var { quickStarts = [], appendTo, fullWidth, handleDrawerClose } = _a, props = __rest(_a, ["quickStarts", "appendTo", "fullWidth", "handleDrawerClose"]);
2009
2009
  const { activeQuickStartID, allQuickStarts = [], activeQuickStartState, } = useContext(QuickStartContext);
2010
- const combinedQuickStarts = allQuickStarts.concat(quickStarts);
2010
+ const combinedQuickStarts = [
2011
+ ...allQuickStarts,
2012
+ ...quickStarts,
2013
+ ].filter((qs, idx, arr) => arr.findIndex(q => q.metadata.name === qs.metadata.name) === idx);
2011
2014
  const handleClose = () => {
2012
2015
  handleDrawerClose && handleDrawerClose(activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.status);
2013
2016
  };