mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-03 12:30:24 +08:00
website: Fix regression that broke the ability to review unchanged rankings.
This was caused by the init effect in Task.tsx running _after_ the task submits it's default reply validity as part of it's init effect. Clearly we need to refactor the way Task.tsx works.
This commit is contained in:
@@ -74,7 +74,7 @@ export const Task = () => {
|
||||
): TaskStatus => {
|
||||
switch (event.action) {
|
||||
case "NEW_TASK":
|
||||
return { mode: "EDIT", replyValidity: "INVALID" };
|
||||
return status.mode !== "EDIT" ? { mode: "EDIT", replyValidity: "INVALID" } : status;
|
||||
case "UPDATE_VALIDITY":
|
||||
return status.mode === "EDIT" ? { mode: "EDIT", replyValidity: event.replyValidity } : status;
|
||||
case "ACCEPT_DEFAULT":
|
||||
|
||||
Reference in New Issue
Block a user