mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-03 05:43:22 +00:00
Extras treated a persisted false as authoritative, so unsaved Aveta toggles never reached the overlay. Refresh the filters visual baseline for the Aveta Compliance section.
8 lines
261 B
TypeScript
8 lines
261 B
TypeScript
/** Extras overlay follows the unsaved Info draft while editing. */
|
|
export function resolveSlideOverAvetaRequired(
|
|
editing: boolean,
|
|
persisted: boolean | undefined,
|
|
draft: boolean | undefined,
|
|
): boolean {
|
|
return Boolean(editing ? draft : persisted);
|
|
}
|