Changeset b6e1b3c for pages/forge


Ignore:
Timestamp:
12/29/25 02:32:48 (6 months ago)
Author:
Mihail <mihail2.naumov@…>
Branches:
main
Children:
f46bf5c
Parents:
3870834
Message:

Added delete button and still fixing naming problem with build creation

File:
1 edited

Legend:

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

    r3870834 rb6e1b3c  
    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.