ES6 Plato on Github
Report Home
Summary Display
actions/logbook.js
Maintainability
84.36
Lines of code
19
Difficulty
6.13
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
import { SET_AVAILABLE_TAGS, CLEAR_AVAILABLE_TAGS } from '../constants/ActionTypes'; /** * Action used to set available tags * @param {array} availableTags available tags * @return {object} action */ export function setAvailableTagAction(availableTags) { return { type: SET_AVAILABLE_TAGS, payload: availableTags }; } export function clearAvailableTagAction() { return { type: CLEAR_AVAILABLE_TAGS, }; }