diff --git a/plugins/task-resources/src/components/state/DoneStateEditor.svelte b/plugins/task-resources/src/components/state/DoneStateEditor.svelte
index 4e89fa016f..76d59ff53a 100644
--- a/plugins/task-resources/src/components/state/DoneStateEditor.svelte
+++ b/plugins/task-resources/src/components/state/DoneStateEditor.svelte
@@ -52,7 +52,7 @@
if (result) {
value = result._id
onChange(value)
- } else if (result == null) {
+ } else if (result === null) {
value = null
onChange(value)
}
@@ -65,6 +65,16 @@
{#if state}