Render TICKscript name instead of ID

But render ID if there is no name
pull/10616/head
Alex P 2018-04-11 10:53:01 -07:00
parent e3e51ac4c7
commit 1f435843bc
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ const TickscriptEditorControls = ({
{isNewTickscript ? ( {isNewTickscript ? (
<TickscriptID onChangeID={onChangeID} id={task.id} /> <TickscriptID onChangeID={onChangeID} id={task.id} />
) : ( ) : (
<TickscriptStaticID id={task.id} /> <TickscriptStaticID id={task.name ? task.name : task.id} />
)} )}
<div className="tickscript-controls--right"> <div className="tickscript-controls--right">
<TickscriptType type={task.type} onChangeType={onChangeType} /> <TickscriptType type={task.type} onChangeType={onChangeType} />