@patternfly/quickstarts 6.3.0-prerelease.5 → 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.js CHANGED
@@ -2045,7 +2045,10 @@ const QuickStartPanelContent = (_a) => {
2045
2045
  const QuickStartDrawerContent = (_a) => {
2046
2046
  var { quickStarts = [], appendTo, fullWidth, handleDrawerClose } = _a, props = tslib.__rest(_a, ["quickStarts", "appendTo", "fullWidth", "handleDrawerClose"]);
2047
2047
  const { activeQuickStartID, allQuickStarts = [], activeQuickStartState, } = react.useContext(QuickStartContext);
2048
- const combinedQuickStarts = allQuickStarts.concat(quickStarts);
2048
+ const combinedQuickStarts = [
2049
+ ...allQuickStarts,
2050
+ ...quickStarts,
2051
+ ].filter((qs, idx, arr) => arr.findIndex(q => q.metadata.name === qs.metadata.name) === idx);
2049
2052
  const handleClose = () => {
2050
2053
  handleDrawerClose && handleDrawerClose(activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.status);
2051
2054
  };