Skip to content

Commit

Permalink
Merge pull request #155 from lokanandaprabhu/feature/SRVKP-6343
Browse files Browse the repository at this point in the history
SRVKP-6343: Console crashes when ssh is selected in add secret for starting a pipeline run
  • Loading branch information
openshift-merge-bot[bot] authored Sep 13, 2024
2 parents a4b3159 + 8389a20 commit f41961b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/text-column-field/drag-drop-context.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import * as React from 'react';
import { DndProvider, createDndContext } from 'react-dnd';
import { DndProvider } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';

const dndContext = createDndContext(HTML5Backend);

const withDragDropContext =
<TProps extends {}>(
Component: React.ComponentClass<TProps> | React.FC<TProps>,
) =>
(props: TProps) => {
const manager = React.useRef(dndContext);
return (
<DndProvider manager={manager.current.dragDropManager}>
<DndProvider backend={HTML5Backend} context={window}>
<Component {...props} />
</DndProvider>
);
Expand Down

0 comments on commit f41961b

Please sign in to comment.