Skip to content

Commit

Permalink
fix: toast notification not displaying when table is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpatel-crest committed Aug 6, 2021
1 parent f23843e commit 67b3f12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ui/src/main/webapp/components/ConfigurationTable.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, { useState, memo } from 'react';
import PropTypes from 'prop-types';

import ToastMessages from '@splunk/react-toast-notifications/ToastMessages';

import { TableContextProvider } from '../context/TableContext';
import TableWrapper from './table/TableWrapper';
import EntityModal from './EntityModal';
Expand Down Expand Up @@ -44,7 +42,6 @@ function ConfigurationTable({ serviceName, serviceTitle }) {
serviceName={serviceName}
handleRequestModalOpen={() => handleRequestOpen()}
/>
<ToastMessages position="top-right" />
{generateModalDialog()}
</TableContextProvider>
</>
Expand Down
2 changes: 2 additions & 0 deletions ui/src/main/webapp/pages/Configuration/ConfigurationPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState, useCallback, useEffect } from 'react';

import { _ } from '@splunk/ui-utils/i18n';
import TabBar from '@splunk/react-ui/TabBar';
import ToastMessages from '@splunk/react-toast-notifications/ToastMessages';
import ColumnLayout from '@splunk/react-ui/ColumnLayout';
import styled from 'styled-components';

Expand Down Expand Up @@ -101,6 +102,7 @@ function ConfigurationPage() {
</div>
);
})}
<ToastMessages position="top-right" />
</ErrorBoundary>
);
}
Expand Down

0 comments on commit 67b3f12

Please sign in to comment.