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

Fixed not found FIM file toast error #4124

Merged
merged 4 commits into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed agent breadcrumb routing minor error [#4101](https://github.com/wazuh/wazuh-kibana-app/pull/4101)
- Fixed selected text not visible in API Console [#4102](https://github.com/wazuh/wazuh-kibana-app/pull/4102)
- Fixed the 'missing parameters' error on the Manager Logs [#4110](https://github.com/wazuh/wazuh-kibana-app/pull/4110)
- Fixed not found FIM file toast error #4124 [#4124](https://github.com/wazuh/wazuh-kibana-app/pull/4124)
- Fixed "See full error" on error toast [#4119](https://github.com/wazuh/wazuh-kibana-app/pull/4119)
- Fixed not being able to remove custom filters. [#4112](https://github.com/wazuh/wazuh-kibana-app/pull/4112)
- Fixed spinner not showing when export button is clicked in management views [#4120](https://github.com/wazuh/wazuh-kibana-app/pull/4120)
Expand Down
2 changes: 1 addition & 1 deletion public/components/agents/fim/inventory/flyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class FlyoutDetail extends Component {
currentFile = ((((data || {}).data || {}).data || {}).affected_items || [])[0];
}
if (!currentFile) {
throw false;
throw new Error('File not found');
}
this.setState({ currentFile, type: currentFile.type, isLoading: false });
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions public/components/agents/vuls/inventory/flyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class FlyoutDetail extends Component {
this.setState({ clusterFilter });
const currentItem = this.props.item;

if (!currentItem) {
throw false;
if (!currentFile) {
throw new Error('File not found');
}

const lastScan = await this.getLastScan();
Expand Down