fl4re / sinopia

Private npm repository server
75 stars 22 forks source link

Click package name multiple times will introduce duplicate README files #22

Open TylerYang opened 8 years ago

TylerYang commented 8 years ago

Hi folks, several README document would be appended to list if I click package name continuously.

Suppose I have the module AAA-MODULE, and I would like to check the document, then I click the module name for several times, then the structure of document would become,

    <div class='entry'>
        <div class='readme'></div>
        <div class='readme'></div>
        <div class='readme'></div>
        <div class='readme'></div>
        <div class='readme'></div>
        <div class='readme'></div>
    </div>

Seems it didn't handle async data very well. I will send a PR later, any comments are welcome.