UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

9 lines (6 loc) 278 B
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {GlobalState} from 'types/store'; export function getDisplayableErrors(state: GlobalState) { return state.errors.filter((error) => error.displayable); }