Skip to content

Commit 527c0a5

Browse files
committed
found it !
1 parent 0aee514 commit 527c0a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrahub_sdk/node/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from collections.abc import Iterable
4-
from copy import copy
4+
from copy import copy, deepcopy
55
from typing import TYPE_CHECKING, Any
66

77
from ..constants import InfrahubClientMode
@@ -397,7 +397,7 @@ def generate_query_data_init(
397397
"edges": {"node": {"id": None, "hfid": None, "display_label": None, "__typename": None}},
398398
}
399399

400-
data["@filters"] = filters or {}
400+
data["@filters"] = deepcopy(filters) if filters is not None else {}
401401

402402
if order:
403403
data["@filters"]["order"] = order

0 commit comments

Comments
 (0)