Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AlertWizard.jsx #2420

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/views/tenant/administration/AlertWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import { faCircleNotch } from '@fortawesome/free-solid-svg-icons'
import CippButtonCard from 'src/components/contentcards/CippButtonCard'
import alertList from 'src/data/alerts.json'
import auditLogSchema from 'src/data/AuditLogSchema.json'
import auditLogSchema from 'src/data/auditlogschema.json'

const AlertWizard = () => {
const dispatch = useDispatch()
Expand Down Expand Up @@ -242,7 +242,7 @@
{(props) => {
return (
<RFFSelectSearch
values={getAuditLogSchema(props.values?.logbook?.value)}

Check warning on line 245 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values' is missing in props validation

Check warning on line 245 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values.logbook' is missing in props validation

Check warning on line 245 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values.logbook.value' is missing in props validation
name={`conditions.${i}.property`}
placeholder={'Select a property to alert on'}
label="When property"
Expand Down Expand Up @@ -273,7 +273,7 @@
{(props) => {
return (
<>
{props.values?.conditions?.[i]?.property?.value ===

Check warning on line 276 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values' is missing in props validation

Check warning on line 276 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values.conditions' is missing in props validation

Check warning on line 276 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values.conditions[].property' is missing in props validation

Check warning on line 276 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values.conditions[].property.value' is missing in props validation
'String' && (
<RFFCFormInput
name={`conditions.${i}.Input`}
Expand All @@ -281,9 +281,9 @@
label={`Input`}
/>
)}
{props.values?.conditions?.[

Check warning on line 284 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values' is missing in props validation

Check warning on line 284 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values.conditions' is missing in props validation
i
]?.property?.value.startsWith('List:') && (

Check warning on line 286 in src/views/tenant/administration/AlertWizard.jsx

View workflow job for this annotation

GitHub Actions / NPM Install and Build (16.x, ubuntu-latest)

'values.conditions[].property' is missing in props validation
<RFFSelectSearch
values={
auditLogSchema[
Expand Down
Loading