Skip to content

Commit

Permalink
fix: parse boolean of disabled before setting it in state
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpatel-crest committed Jul 9, 2021
1 parent c0fad64 commit da76a93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/main/webapp/components/table/TableWrapper.jsx
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';

import { WaitSpinnerWrapper } from './CustomTableStyle';
import { axiosCallWrapper } from '../../util/axiosCallWrapper';
import { getUnifiedConfigs, generateToast } from '../../util/util';
import { getUnifiedConfigs, generateToast, isTrue } from '../../util/util';
import CustomTable from './CustomTable';
import TableHeader from './TableHeader';
import TableContext from '../../context/TableContext';
Expand Down Expand Up @@ -138,7 +138,8 @@ function TableWrapper({ page, serviceName, handleRequestModalOpen, handleOpenPag
return update(currentRowData, {
[row.serviceName]: {
[row.name]: {
disabled: { $set: response.data.entry[0].content.disabled },
// ADDON-39125: isTrue required if splunktaucclib resthandlers' super() is not invoked
disabled: { $set: isTrue(response.data.entry[0].content.disabled) },
__toggleShowSpinner: { $set: false },
},
},
Expand Down

0 comments on commit da76a93

Please sign in to comment.