comment
This commit is contained in:
@@ -30,7 +30,7 @@ export function useCreateParticle() {
|
|||||||
mutationFn: async (params: CreateParticleParams) => {
|
mutationFn: async (params: CreateParticleParams) => {
|
||||||
const { networkId } = parseParticlePath(params.path);
|
const { networkId } = parseParticlePath(params.path);
|
||||||
|
|
||||||
// Containers aren't counted server-side, so we don't block them.
|
// Containers aren't counted server-side, so we block them here
|
||||||
if (!CONTAINER_TYPES.has(params.type)) {
|
if (!CONTAINER_TYPES.has(params.type)) {
|
||||||
const cached = qc.getQueryData<NetworkUsage>(networkUsageQueryKey(networkId));
|
const cached = qc.getQueryData<NetworkUsage>(networkUsageQueryKey(networkId));
|
||||||
if (isUsageExhausted(cached)) {
|
if (isUsageExhausted(cached)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user