mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Prevent clearing of trigger options when initialising (#15005)
This commit is contained in:
@@ -199,14 +199,18 @@ watch(
|
||||
|
||||
watch(
|
||||
() => values.trigger,
|
||||
() => {
|
||||
(_, previousTrigger) => {
|
||||
if (previousTrigger === undefined) return;
|
||||
|
||||
values.options = {};
|
||||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => values.options?.type,
|
||||
(type) => {
|
||||
(type, previousType) => {
|
||||
if (previousType === undefined) return;
|
||||
|
||||
values.options = {
|
||||
type,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user