Changeset f46bf5c for pages/forge


Ignore:
Timestamp:
12/29/25 03:57:17 (6 months ago)
Author:
Tome <gjorgievtome@…>
Branches:
main
Children:
958bc89
Parents:
dda6f51 (diff), b6e1b3c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/main'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/forge/+Page.tsx

    rdda6f51 rf46bf5c  
    131131            let id = buildId;
    132132            if (!id) {
    133                 const result = await onAddNewBuild({name: "Draft Build", description: "Work in progress"});
     133                const result = await onAddNewBuild({
     134                    name: buildName.trim() || "New Build",
     135                    description: description || "Work in progress"
     136                });
    134137                id = typeof result === 'number' ? result : (result as any)?.buildId;
    135138                if (!id || !Number.isInteger(id) || id <= 0) {
     
    150153            await onAddComponentToBuild({buildId: id, componentId: component.id});
    151154        } catch (e) {
    152             // console.error("Failed to add component to server build", e);
    153155            alert("Failed to add component. Please try again.");
    154156        } finally {
     
    156158        }
    157159    };
     160
    158161
    159162    const handleRemovePart = async (slotId: string) => {
Note: See TracChangeset for help on using the changeset viewer.