Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,12 @@ export function AddEditDialog({

// STUDIO-17977 / Task 10: drive the colour palette from
// `filament.colors.query_for_id`. The same fila_id resolution as
// handleSubmit (cloud filamentId > preset setting_id > preset filament_id)
// handleSubmit (cloud filamentId > preset filament_id)
// is reused here so the candidate query keys off whatever the spool will
// actually serialise as `setting_id` on save.
const filaId = useMemo(
() => (
matchedCloudFilamentId
|| matchedPresetItem?.setting_id
|| matchedPresetItem?.filament_id
|| initSpool?.setting_id
|| ''
Expand Down Expand Up @@ -1090,7 +1089,6 @@ export function AddEditDialog({
remain_percent: remainPct,
note,
setting_id: matchedCloudFilamentId
|| matchedPresetItem?.setting_id
|| matchedPresetItem?.filament_id
|| initSpool?.setting_id
|| '',
Expand Down