fixed annoying bug where the trigger disappears when you edit
This commit is contained in:
1 parent
9d13785985
commit
7296a2c518
4 files changed
+3
-6
No files matched your search
@@ -27,12 +27,9 @@ export const AutomationList: FC<AutomationListParams> = ({
|
||||
children,
|
||||
}) => {
|
||||
// state
|
||||
// const [searchParams, setSearchParams] = useSearchParams();
|
||||
const [hideList, setHideList] = useState(false);
|
||||
const [current, setCurrent] = useState(0);
|
||||
// alias
|
||||
// const current = Number(searchParams.get("current") ?? "0");
|
||||
// const setCurrent = (i: number) => setSearchParams({ current: String(i) });
|
||||
const currentAuto = automations.length > 0 ? automations[current] : null;
|
||||
const automationListListCls = "automation-list--list" + (hideList ? " hide" : " show")
|
||||
// render
|
||||
|
||||
Reference in new issue
Block a user