A centre that supports community groups was at risk from withdrawal of funding