@@ -328,15 +328,6 @@ export const ConfigMapSecretContainer = ({
328
328
}
329
329
} , [ configMapSecretResLoading , configMapSecretRes ] )
330
330
331
- // CONFIGMAP/SECRET DELETED
332
- const configHasBeenDeleted = useMemo (
333
- ( ) =>
334
- ! configMapSecretResLoading && configMapSecretRes
335
- ? ! configMapSecretData && ! inheritedConfigMapSecretData && ! draftData
336
- : null ,
337
- [ configMapSecretResLoading , configMapSecretRes ] ,
338
- )
339
-
340
331
// CONFIGMAP/SECRET ERROR
341
332
const configMapSecretResErr = useMemo (
342
333
( ) =>
@@ -348,6 +339,18 @@ export const ConfigMapSecretContainer = ({
348
339
[ configMapSecretResLoading , configMapSecretRes ] ,
349
340
)
350
341
342
+ // CONFIGMAP/SECRET DELETED
343
+ const configHasBeenDeleted = useMemo (
344
+ ( ) =>
345
+ ! configMapSecretResLoading &&
346
+ configMapSecretRes &&
347
+ ! configMapSecretResErr &&
348
+ ! configMapSecretData &&
349
+ ! inheritedConfigMapSecretData &&
350
+ ! draftData ,
351
+ [ configMapSecretResLoading , configMapSecretRes , configMapSecretResErr ] ,
352
+ )
353
+
351
354
// ASYNC CALL - CONFIGMAP/SECRET RESOLVED DATA
352
355
const [ resolvedScopeVariablesResLoading , resolvedScopeVariablesRes , reloadResolvedScopeVariablesResErr ] = useAsync (
353
356
( ) =>
0 commit comments