Skip to content

Commit

Permalink
Merge pull request #669 from ckpaliwal/5917-fix
Browse files Browse the repository at this point in the history
fetch channels list with skip cache just after channel deletion
  • Loading branch information
ckpaliwal authored Mar 22, 2024
2 parents 818e797 + f2afe13 commit 9009199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apollo/src/components/Channels/Channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,12 +694,12 @@ class ChannelComponent extends Component {
}

// get all pending channels for orderers
getAllOrdererChannels = async (opts) => {
getAllOrdererChannels = async (opts = {}) => {
this.props.updateState(SCOPE, { orderer_loading: true, pending_osn_channels: [], all_local_blocks: [] });
const pending_blocks = [];

// get all then separate them on visibility
const all_blocks = await ConfigBlockApi.getAll({ visibility: 'all' });
const all_blocks = await ConfigBlockApi.getAll({ ...opts, visibility: 'all' });
if (all_blocks && Array.isArray(all_blocks.blocks)) {
for (let i in all_blocks.blocks) {
all_blocks.blocks[i].name = all_blocks.blocks[i].channel;
Expand Down

0 comments on commit 9009199

Please sign in to comment.