fix client compile error
This commit is contained in:
@ -4,6 +4,8 @@ FROM node:current-alpine
|
|||||||
|
|
||||||
# Set environment variables for Node.js
|
# Set environment variables for Node.js
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
# ENV MYSQL_ROOT_PASSWORD=pass
|
||||||
|
ENV MYSQL_DATABASE=cart
|
||||||
|
|
||||||
# Create and set the working directory
|
# Create and set the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -25,7 +25,8 @@ export default function AvailabilityForm({ publisherId, existingItems, inline, o
|
|||||||
indexUrl: "/cart/availabilities"
|
indexUrl: "/cart/availabilities"
|
||||||
};
|
};
|
||||||
|
|
||||||
existingitems = existingitems || [];
|
//coalsce existingItems to empty array
|
||||||
|
existingItems = existingItems || [];
|
||||||
|
|
||||||
const [editMode, setEditMode] = useState(existingItems.length > 0);
|
const [editMode, setEditMode] = useState(existingItems.length > 0);
|
||||||
const [publisher, setPublisher] = useState({ id: publisherId });
|
const [publisher, setPublisher] = useState({ id: publisherId });
|
||||||
|
Reference in New Issue
Block a user