#12323·portainer

Container filter not possible to remove

Author: trejjamCreated Oct 11, 2024Updated Sep 22, 2026
Labelskind/bugbug/confirmedinternal/jira

Before you start please confirm the following.

Problem Description

In the Container list, when you set filter e.g., State[]=Exited. Then, you delete the exited container(s). Now, you can not uncheck State[]=Exited filter.

Expected Behavior

Filter resets when not applicable or visible even if not applicable.

Actual Behavior

The filter does not display applied settings when it's no longer applicable to data, so it's unable to remove such.

Steps to Reproduce

  1. Go to Containers
  2. Create and stop a container (optional)
  3. Filter State=Exited
  4. Delete exited container(s)
  5. Unable to uncheck State=Exited

Portainer logs or screenshots

Set filter. image

Delete stopped containers, unable to remove filter: image

Portainer version

2.22.0

Portainer Edition

Community Edition (CE)

Platform and Version

Docker Swarm 20.10.5

OS and Architecture

Debian 5.10

Browser

Google Chrome 129.0.6668.90

What command did you use to deploy Portainer?

bash
portainer:
    image: portainer/portainer-ce:2.22.0
    command: -H tcp://tasks.agent:9001 --tlsskipverify
    deploy:
      labels:
        portainer: portainer
      mode: replicated
      replicas: 1
      update_config:
        delay: 10s
      restart_policy:
        delay: 30s
        max_attempts: 10
        window: 120s
      placement:
        max_replicas_per_node: 1
        constraints: [ node.role == manager ]
      resources:
        limits:
          memory: 280m
    environment:
      GOMEMLIMIT: "200MiB"
    volumes:
      - portainer_data:/data
    networks:
      - portainer
    ports:
      - target: 9000
        published: 9000
        protocol: tcp
        mode: host
      - target: 8000
        published: 8000
        protocol: tcp


### Additional Information

_No response_